You are here

function _name_formatter_output_types in Name Field 8

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

Private helper function to define the formatter rendering methods.

File

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

Code

function _name_formatter_output_types() {
  static $ot = NULL;
  if (!isset($ot)) {
    return [
      'default' => t('Default'),
      'plain' => t('Plain'),
      'raw' => t('Raw'),
    ];
  }
  return $ot;
}