Full ELMS Learning Network documentation
function field_info_field
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 field.info.inc | field_info_field($field_name) |
cle7 field.info.inc | field_info_field($field_name) |
elmsmedia7 field.info.inc | field_info_field($field_name) |
icor7 field.info.inc | field_info_field($field_name) |
meedjum_blog7 field.info.inc | field_info_field($field_name) |
mooc7 field.info.inc | field_info_field($field_name) |
Returns data about an individual field, given a field name.
Parameters
$field_name: The name of the field to retrieve. $field_name can only refer to a non-deleted, active field. For deleted fields, use field_info_field_by_id(). To retrieve information about inactive fields, use field_read_fields().
Return value
The field array, as returned by field_read_fields(), with an additional element 'bundles', whose value is an array of all the bundles this field belongs to keyed by entity type. NULL if the field was not found.
See also
Related topics
180 calls to field_info_field()
- accessibility_install in sites/
all/ modules/ ulmus/ accessibility/ accessibility.install - Implements hook_install().
- better_formats_form_field_ui_edit_form_submit in sites/
all/ modules/ ulmus/ better_formats/ better_formats.module - Submit handler for field instance edit form.
- cis_helper_add_offering_page in profiles/
cis/ modules/ custom/ cis_helper/ cis_helper.pages.inc - Callback for setting up an offering for existing courses.
- cis_helper_offering_planning_page in profiles/
cis/ modules/ custom/ cis_helper/ cis_helper.pages.inc - Callback for offering planning
- cis_helper_quick_setup_page in profiles/
cis/ modules/ custom/ cis_helper/ cis_helper.pages.inc - Callback for quick setup page to build a lot of elements at once.
File
- modules/
field/ field.info.inc, line 518 - Field Info API, providing information about available fields and field types.
Code
function field_info_field($field_name) {
$cache = _field_info_field_cache();
return $cache->getField($field_name);
}