You are here

function _name_translations in Name Field 6

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

Static cache to reuse translated name components.

17 calls to _name_translations()
name_content_is_empty in ./name.module
Implementation of hook_content_is_empty().
name_elements in ./name.module
Implementation of hook_elements().
name_element_expand in ./name.module
The #process callback to create the element.
name_element_pre_render in ./name.module
This function forces the error class attribute onto each of the empty element components as required, themes the element and controls the title display.
name_element_validate in ./name.module

... See full list

File

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

Code

function _name_translations($intersect = NULL) {
  $nt = NULL;
  if (!isset($nt)) {
    $nt = array(
      'title' => t('Title'),
      'given' => t('Given'),
      'middle' => t('Middle name(s)'),
      'family' => t('Family'),
      'generational' => t('Generational'),
      'credentials' => t('Credentials'),
    );
  }
  return empty($intersect) ? $nt : array_intersect_key($nt, $intersect);
}