function theme_ds_field_inline in Display Suite 6.2
Same name and namespace in other branches
- 6.3 theme/theme.inc \theme_ds_field_inline()
Theme function to render the field content inline
This does not support "above" labels, for obvious reasons.
Parameters
array $field Collection of field properties.:
File
- theme/
theme.inc, line 40 - Theming functions for ds.
Code
function theme_ds_field_inline($field) {
$output = '';
if (!empty($field['content'])) {
$output .= '<div class="field field-inline ' . $field['class'] . '">';
// Inline label
if ($field['labelformat'] == 'inline') {
$output .= '<div class="field-label-inline-first">' . $field['title'] . ': </div>';
}
$output .= $field['content'];
$output .= '</div>';
}
return $output;
}