diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-02 20:37:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-02 20:37:03 +0000 |
commit | 45b97d8a9d9bb90ce693474cb6e15bf38827b903 (patch) | |
tree | 6415cb1abff60bfd5b041411f3bbe484672ab506 /modules/field/field.module | |
parent | f25d5685c13f7d37dea353276119c0cd5d68e56f (diff) | |
download | brdo-45b97d8a9d9bb90ce693474cb6e15bf38827b903.tar.gz brdo-45b97d8a9d9bb90ce693474cb6e15bf38827b903.tar.bz2 |
- Patch #508440 by yched: build mode, it is.
Diffstat (limited to 'modules/field/field.module')
-rw-r--r-- | modules/field/field.module | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/field/field.module b/modules/field/field.module index 6b5d184cd..9f023aa6b 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -472,18 +472,19 @@ function field_format($obj_type, $object, $field, $item, $formatter_name = NULL, * * To be used by third-party code (Views, Panels...) that needs to output * an isolated field. Do *not* use inside node templates, use the - * $FIELD_NAME_rendered variables instead. + * render($content[FIELD_NAME]) instead. * - * By default, the field is displayed using the settings defined for the - * 'full' or 'teaser' contexts (depending on the value of the $build_mode param). + * The field will be displayed using the display options (label display, + * formatter settings...) specified in the $instance structure for the given + * build mode: $instance['display'][$build_mode]. * - * Different settings can be specified by adjusting $field['display']. - * - * @param $field - * The field definition. * @param $object * The object containing the field to display. Must at least contain the id key, * revision key (if applicable), bundle key, and the field data. + * @param $field + * The field structure. + * @param $instance + * The instance structure for $field on $object's bundle. * @param $build_mode * Build mode, e.g. 'full', 'teaser'... * @return |