function theme_form


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_form($variables)
cle7 theme_form($variables)
elmsmedia7 theme_form($variables)
icor7 theme_form($variables)
meedjum_blog7 theme_form($variables)
mooc7 theme_form($variables)

Returns HTML for a form.


$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #action, #method, #attributes, #children

Related topics

1 theme call to theme_form()
video_filter_dashboard_page in sites/all/modules/ulmus/video_filter/video_filter.module
Creates the dashboard.
331 string references to the theme hook from theme_form()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook. in sites/all/modules/ulmus/feeds_tamper/plugins/
Make URLs absolute.
accessibility_content_field_widget_form_alter in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.module
Implements field_widget_form_alter().
accessibility_field_extra_fields in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_field_extra_fields().
accessibility_install in sites/all/modules/ulmus/accessibility/accessibility.install
Implements hook_install().
adaptivetheme_preprocess_block in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Preprocess variables for block.tpl.php

... See full list


includes/, line 3898
Functions for form and batch generation and processing.


function theme_form($variables) {
  $element = $variables['element'];
  if (isset($element['#action'])) {
    $element['#attributes']['action'] = drupal_strip_dangerous_protocols($element['#action']);
  element_set_attributes($element, array('method', 'id'));
  if (empty($element['#attributes']['accept-charset'])) {
    $element['#attributes']['accept-charset'] = "UTF-8";
  // Anonymous DIV to satisfy XHTML compliance.
  return '<form' . drupal_attributes($element['#attributes']) . '><div>' . $element['#children'] . '</div></form>';