Full ELMS Learning Network documentation
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/api.elmsln.org/includes/bootstrap.inc).cis7 form.inc | theme_form($variables) |
cle7 form.inc | theme_form($variables) |
elmsmedia7 form.inc | theme_form($variables) |
icor7 form.inc | theme_form($variables) |
meedjum_blog7 form.inc | theme_form($variables) |
mooc7 form.inc | theme_form($variables) |
Returns HTML for a form.
Parameters
$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.
- absolute_url.inc in sites/
all/ modules/ ulmus/ feeds_tamper/ plugins/ absolute_url.inc - 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.inc - Preprocess variables for block.tpl.php
File
- includes/
form.inc, line 3898 - Functions for form and batch generation and processing.
Code
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>';
}