diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-10 16:09:00 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-10 16:09:00 +0000 |
commit | 295feb1db47232b668c8d1e07b1fd9eeb4003038 (patch) | |
tree | 75fbfa90a2514a2e843b080c567a6eb2bf0c91a7 /modules/field/field.autoload.inc | |
parent | 00e38fb0e313fc732dce1b7bc9125340519d5155 (diff) | |
download | brdo-295feb1db47232b668c8d1e07b1fd9eeb4003038.tar.gz brdo-295feb1db47232b668c8d1e07b1fd9eeb4003038.tar.bz2 |
#370037 by bjaspan: Add means of getting all instances of a field.
Diffstat (limited to 'modules/field/field.autoload.inc')
-rw-r--r-- | modules/field/field.autoload.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/field/field.autoload.inc b/modules/field/field.autoload.inc index cce62e688..2a44f5817 100644 --- a/modules/field/field.autoload.inc +++ b/modules/field/field.autoload.inc @@ -505,7 +505,9 @@ function field_info_bundle_entity($bundle) { * Return array of all field data, keyed by field name. * * @return - * An array of Field objects. + * An array of Field objects. Each Field object has an additional + * property, bundles, which is an array of all the bundles to which + * this field belongs. * * This function is an autoloader for _field_info_fields() in modules/field/field.info.inc. */ @@ -518,6 +520,11 @@ function field_info_fields() { * Return data about an individual field. * * @param $field_name + * The name of the field to retrieve. + * @return + * The named field object, or NULL. The Field object has an additional + * property, bundles, which is an array of all the bundles to which + * this field belongs. * * This function is an autoloader for _field_info_field() in modules/field/field.info.inc. */ |