You are here

function name_theme in Name Field 6

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

Implement hook_theme().

File

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

Code

function name_theme() {
  $theme = array(
    // Themes the FAPI element.
    'name_element' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    // Provides the help for the recognized characters
    // in the name_format() format parameter.
    'name_format_parameter_help' => array(
      'file' => 'includes/name.parser.inc',
    ),
  );
  if (module_exists('content')) {
    name_additional_content_theme($theme);
  }
  return $theme;
}