diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-26 12:48:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-26 12:48:14 +0000 |
commit | 814f4c8e3f739fcf3155bddf5ee9b726a165cfde (patch) | |
tree | 95f4de42961f4c1999bbf5498bfbe23bbe0d41c7 /modules/field/theme | |
parent | 95a0f85a8053e3c2bda56a204db243a2daa95aa7 (diff) | |
download | brdo-814f4c8e3f739fcf3155bddf5ee9b726a165cfde.tar.gz brdo-814f4c8e3f739fcf3155bddf5ee9b726a165cfde.tar.bz2 |
- Patch #667040 by effulgentsia: optimize template_preprocess_field().
Diffstat (limited to 'modules/field/theme')
-rw-r--r-- | modules/field/theme/field.tpl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/theme/field.tpl.php b/modules/field/theme/field.tpl.php index 1c8be235d..069ed48fa 100644 --- a/modules/field/theme/field.tpl.php +++ b/modules/field/theme/field.tpl.php @@ -13,6 +13,7 @@ * CSS. It can be manipulated through the variable $classes_array from * preprocess functions. The default values can be one or more of the * following: + * - field: The current template type, i.e., "theming hook". * - field-name-[field_name]: The current field name. For example, if the * field name is "field_description" it would result in * "field-name-field-description". @@ -23,7 +24,6 @@ * * Other variables: * - $object: The object to which the field is attached. - * - $field: The field array. * - $build_mode: Build mode, e.g. 'full', 'teaser'... * - $field_name: The field name. * - $field_type: The field type. @@ -38,7 +38,7 @@ * @see template_preprocess_field() */ ?> -<div class="field <?php print $classes; ?> clearfix"<?php print $attributes; ?>> +<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> <?php if (!$label_hidden) : ?> <div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>: </div> <?php endif; ?> |