public static function TripalFieldFormatter::info

3.x TripalFieldFormatter.inc public static TripalFieldFormatter::info()

Provides information about the formatter for this field.

This function corresponds to the hook_field_formatter_info() function of the Drupal Field API.

This is a static function as it provides default values for all of the formatters for this field type, and thus we don't need an instantiated object to provide this information.

Return value

An associative array with key/value paris compatible with those from the hook_field_formatter_info() function of the Drupal Field API.

File

tripal/includes/TripalFields/TripalFieldFormatter.inc, line 50

Class

TripalFieldFormatter

Code

public static function info() {
  $class = get_called_class();
  return array(
    'label' => $class::$default_label,
    'field types' => $class::$field_types,
    'settings' => $class::$default_settings,
    'TripalFieldFormatter' => TRUE,
  );
}