function template_preprocess_input

Preprocesses variables for theme_input().

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties of the element.

Related topics

File

drupal/core/includes/form.inc, line 4124
Functions for form and batch generation and processing.

Code

function template_preprocess_input(&$variables) {
  $element = $variables['element'];
  $variables['attributes'] = new Attribute($element['#attributes']);
}