You are here

function theme_name_item in Name Field 7

Wrapper theming function for name_format().

3 theme calls to theme_name_item()
_webform_csv_data_name in includes/webform.components.inc
Implements Webform callback _webform_csv_format_COMPONENT().
_webform_display_name in includes/webform.components.inc
Implements Webform callback _webform_display_COMPONENT().
_webform_table_name in includes/webform.components.inc
Implements Webform callback _webform_table_COMPONENT().

File

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

Code

function theme_name_item($variables) {
  $variables['settings'] += array(
    'markup' => 0,
  );
  $format = name_get_format_by_machine_name($variables['format']);
  if (empty($format)) {
    $format = name_get_format_by_machine_name('default');
  }
  return name_format($variables['item'], $format, $variables['settings']);
}