field_info_widget_settings

7 field.info.inc field_info_widget_settings($type)
8 field.info.inc field_info_widget_settings($type)

Returns a field widget's default settings.

Parameters

$type: A widget type name.

Return value

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

Related topics

4 calls to field_info_widget_settings()

File

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

Code

function field_info_widget_settings($type) {
  $info = field_info_widget_types($type);
  return isset($info['settings']) ? $info['settings'] : array();
}
Login or register to post comments