function field_info_formatter_types
field_info_formatter_types($formatter_type = NULL)
Returns information about field formatters from hook_field_formatter_info().
Parameters
$formatter_type: (optional) A formatter type name. If omitted, all formatter types will be returned.
Return value
Either a single formatter type description, as provided by hook_field_formatter_info(), or an array of all existing formatter types, keyed by formatter type name.
Related topics
File
- modules/field/field.info.inc, line 383
- Field Info API, providing information about available fields and field types.
Code
function field_info_formatter_types($formatter_type = NULL) { $info = _field_info_collate_types(); $formatter_types = $info['formatter types']; if ($formatter_type) { if (isset($formatter_types[$formatter_type])) { return $formatter_types[$formatter_type]; } } else { return $formatter_types; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.info.inc/function/field_info_formatter_types/7.x