diff options
Diffstat (limited to 'modules/field/field.info.inc')
-rw-r--r-- | modules/field/field.info.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/field/field.info.inc b/modules/field/field.info.inc index 6b172dd34..3b36c0355 100644 --- a/modules/field/field.info.inc +++ b/modules/field/field.info.inc @@ -13,6 +13,9 @@ * The Field Info API exposes information about field types, fields, * instances, bundles, widget types, display formatters, behaviors, * and settings defined by or with the Field API. + * + * See @link field Field API @endlink for information about the other parts of + * the Field API. */ /** @@ -24,6 +27,7 @@ */ function field_info_cache_clear() { drupal_static_reset('field_view_mode_settings'); + drupal_static_reset('field_available_languages'); // @todo: Remove this when field_attach_*_bundle() bundle management // functions are moved to the entity API. @@ -602,8 +606,9 @@ function field_info_fields() { * * @param $field_name * The name of the field to retrieve. $field_name can only refer to a - * non-deleted, active field. Use field_read_fields() to retrieve information - * on deleted or inactive fields. + * non-deleted, active field. For deleted fields, use + * field_info_field_by_id(). To retrieve information about inactive fields, + * use field_read_fields(). * * @return * The field array, as returned by field_read_fields(), with an @@ -624,7 +629,7 @@ function field_info_field($field_name) { * * @param $field_id * The id of the field to retrieve. $field_id can refer to a - * deleted field. + * deleted field, but not an inactive one. * * @return * The field array, as returned by field_read_fields(), with an |