Field Formatter API

Field Formatter API

Define Field API formatter types.

Field API formatters specify how fields are displayed when the entity to which the field is attached is displayed. Fields of a given field type may be displayed using more than one formatter. In this case, the Field UI module allows the site builder to choose which formatter to use. Field formatters are defined by implementing hook_field_formatter_info().

See also

Field API

Field Types API

Field Widget API

Parent topics

File

modules/field/field.api.php, line 1024
Hooks provided by the Field module.

Functions

Name Location Description
hook_field_formatter_info modules/field/field.api.php Expose Field API formatter types.
hook_field_formatter_info_alter modules/field/field.api.php Perform alterations on Field API formatter types.
hook_field_formatter_prepare_view modules/field/field.api.php Allow formatters to load information for field values being displayed.
hook_field_formatter_view modules/field/field.api.php Build a renderable array for a field value.

© 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.api.php/group/field_formatter/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部