| Versionen | |
|---|---|
| drupal7 | field_info_formatter_types($formatter_type = NULL) |
Return hook_field_formatter_info() data.
$formatter_type (optional) A formatter type name. If ommitted, all formatter types will be returned.
Either a formatter type description, as provided by hook_field_formatter_info(), or an array of all existing widget types, keyed by widget type name.
This function is an autoloader for _field_info_formatter_types() in modules/field/field.info.inc.
modules/
<?php
function field_info_formatter_types($formatter_type = NULL) {
require_once DRUPAL_ROOT . '/modules/field/field.info.inc';
return _field_info_formatter_types($formatter_type);
}
?>
Kommentare
Kommentar hinzufügen