- drupal
- drupal7
Version 1.2 (checked in on 2009/05/12 at 14:36:12 by dries)
field-field.tpl.php
Default theme implementation to display the value of a field.
Available variables:
- $object: The object to which the field is attached.
- $field: The field array.
- $items: An array of values for each item in the field array.
- $teaser: Whether this is displayed as a teaser.
- $page: Whether this is displayed as a page.
- $field_name: The field name.
- $field_type: The field type.
- $field_name_css: The css-compatible field name.
- $field_type_css: The css-compatible field type.
- $label: The item label.
- $label_display: Position of label display, inline, above, or hidden.
- $field_empty: Whether the field has any valid value.
Each $item in $items contains:
- 'view' - the themed view for that item
See also
template_preprocess_field()
Kommentare
Kommentar hinzufügen