field_info_formatter_settings

function field_info_formatter_settings

field_info_formatter_settings($type)

Returns a field formatter's default settings.

Parameters

$type: A field formatter type name.

Return value

The formatter type's default settings, as provided by hook_field_formatter_info(), or an empty array if type or settings are undefined.

Related topics

File

modules/field/field.info.inc, line 793
Field Info API, providing information about available fields and field types.

Code

function field_info_formatter_settings($type) {
  $info = field_info_formatter_types($type);
  return isset($info['settings']) ? $info['settings'] : array();
}

© 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_settings/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部