1 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

File

core/includes/form.inc, line 4964
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 '<abbr' . backdrop_attributes($attributes) . '>*</abbr>';
}