function ds_vd_render_title_field in Display Suite 7.2
Same name and namespace in other branches
- 7 modules/ds_extras/ds_extras.module \ds_vd_render_title_field()
Function used for theming the views title, user name etc. Note that this is a function so it can't be overridden by a phptemplate function.
1 string reference to 'ds_vd_render_title_field'
- ds_extras_ds_fields_info in modules/
ds_extras/ ds_extras.ds_fields_info.inc - Implements hook_ds_fields_info().
File
- modules/
ds_extras/ ds_extras.module, line 622 - Display Suite extras main functions.
Code
function ds_vd_render_title_field($field) {
$output = '';
$formatter = explode('_', $field['formatter']);
$tag = $formatter[2];
$output = '<' . $tag . '>' . $field['entity']
->get_title() . '</' . $tag . '>';
// Views is a special case, we stack title on the entity.
$field['entity']->preprocess_fields[] = 'title';
$field['entity']->ds_vd['title'] = $output;
}