function biblio_format_field in Bibliography Module 7.2
Helper function for creating field formatters
Parameters
type $item :
1 call to biblio_format_field()
- biblio_fields_field_formatter_view in modules/
biblio_fields/ biblio_fields.module - Implements hook_field_formatter_view().
File
- modules/
biblio_fields/ biblio_fields.module, line 138
Code
function biblio_format_field($item) {
$element = array(
'#type' => 'container',
'#attributes' => array(
'class' => array(
'field-item',
),
),
);
$element['value'] = array(
'item' => array(
'#type' => 'container',
'#attributes' => array(
'class' => array(
'field-item',
),
),
'text' => array(
'#markup' => $item['value'],
),
),
);
return $element;
}