function theme_input

Returns HTML for an input form element.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #attributes.

Related topics

13 theme calls to theme_input()
system_element_info in drupal/core/modules/system/system.module
Implements hook_element_info().
system_element_info in drupal/core/modules/system/system.module
Implements hook_element_info().
system_element_info in drupal/core/modules/system/system.module
Implements hook_element_info().
system_element_info in drupal/core/modules/system/system.module
Implements hook_element_info().
system_element_info in drupal/core/modules/system/system.module
Implements hook_element_info().

... See full list

File

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

Code

function theme_input($variables) {
  $element = $variables['element'];
  $attributes = $variables['attributes'];
  return '<input' . $attributes . ' />' . drupal_render_children($element);
}