You are here

function name_theme in Name Field 8

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

Implements hook_theme().

File

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

Code

function name_theme() {
  $theme = [
    // Themes an individual name element.
    'name_item' => [
      'variables' => [
        'item' => [],
        'format' => NULL,
        'settings' => [],
      ],
      'file' => 'name.theme.inc',
    ],
    // This themes an element into the "name et al" format.
    'name_item_list' => [
      'variables' => [
        'items' => [],
        'settings' => [],
      ],
      'file' => 'name.theme.inc',
    ],
    // Themes the FAPI element.
    'name' => [
      'render element' => 'element',
      'file' => 'name.theme.inc',
    ],
    // Provides the help for the recognized characters in the name_format()
    // format parameter.
    'name_format_parameter_help' => [
      'variables' => [
        'tokens' => [],
      ],
    ],
  ];
  return $theme;
}