Full ELMS Learning Network documentation
function theme_form_required_marker
×
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_required_marker($variables) |
cle7 form.inc | theme_form_required_marker($variables) |
elmsmedia7 form.inc | theme_form_required_marker($variables) |
icor7 form.inc | theme_form_required_marker($variables) |
meedjum_blog7 form.inc | theme_form_required_marker($variables) |
mooc7 form.inc | theme_form_required_marker($variables) |
Returns HTML for a marker for required form elements.
Parameters
$variables: An associative array containing:
- element: An associative array containing the properties of the element.
Related topics
3 theme calls to theme_form_required_marker()
- theme_date_combo in sites/
all/ modules/ ulmus/ date/ date.theme - Returns HTML for a start/end date combination on form.
- theme_field_multiple_value_form in modules/
field/ field.form.inc - Returns HTML for an individual form element.
- theme_form_element_label in includes/
form.inc - Returns HTML for a form element label and required marker.
4 string references to the theme hook from theme_form_required_marker()
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.
- drupal_common_theme in includes/
common.inc - Provides theme registration for themes across .inc files.
- theme_date_combo in sites/
all/ modules/ ulmus/ date/ date.theme - Returns HTML for a start/end date combination on form.
- theme_field_multiple_value_form in modules/
field/ field.form.inc - Returns HTML for an individual form element.
- theme_form_element_label in includes/
form.inc - Returns HTML for a form element label and required marker.
File
- includes/
form.inc, line 4131 - Functions for form and batch generation and processing.
Code
function theme_form_required_marker($variables) {
// This is also used in the installer, pre-database setup.
$t = get_t();
$attributes = array(
'class' => 'form-required',
'title' => $t('This field is required.'),
);
return '<span' . drupal_attributes($attributes) . '>*</span>';
}