function field_info_instance_settings
field_info_instance_settings($type)
Returns a field type's default instance settings.
Parameters
$type: A field type name.
Return value
The field type's default instance settings, as provided by hook_field_info(), or an empty array if type or settings are not defined.
Related topics
File
- modules/field/field.info.inc, line 761
- Field Info API, providing information about available fields and field types.
Code
function field_info_instance_settings($type) { $info = field_info_field_types($type); return isset($info['instance_settings']) ? $info['instance_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_instance_settings/7.x