You are here

function name_theme in Name Field 7

Same name and namespace in other branches
  1. 8 name.module \name_theme()
  2. 6 name.module \name_theme()

Implements hook_theme().

File

./name.module, line 133
Defines an API for displaying and inputing names.

Code

function name_theme() {
  $theme = array(
    // Themes an individual name element. This is only used by the webform
    // integration but will be extended at some stage to theme the formatter
    // items too.
    'name_item' => array(
      'variables' => array(
        'item' => array(),
        'format' => NULL,
        'settings' => array(),
      ),
    ),
    // This themes an element into the "name et al" format.
    'name_item_list' => array(
      'variables' => array(
        'items' => array(),
        'settings' => array(),
      ),
    ),
    // Themes the FAPI element.
    'name_element' => array(
      'render element' => 'element',
    ),
    // Provides a marker to highlight that the component is required.
    'name_component_required_marker' => array(
      'variables' => array(
        'base_element' => NULL,
        'component_key' => NULL,
        'components' => NULL,
      ),
    ),
    // Provides the help for the recognized characters in the name_format()
    // format parameter.
    'name_format_parameter_help' => array(
      'file' => 'includes/name.parser.inc',
    ),
  );
  return $theme;
}