function panopoly_widgets_views_post_render in Panopoly Widgets 7
Implements hook_views_post_render().
File
- ./
panopoly_widgets.module, line 786
Code
function panopoly_widgets_views_post_render(&$view) {
if ($view->name == 'panopoly_widgets_general_content' && $view->current_display == 'piece_of_content') {
// Reset the title to its original value.
$display = $view->display[$view->current_display];
if (is_a($view->style_plugin->row_plugin, 'entity_views_plugin_row_entity_view') && !empty($view->result[0])) {
_panopoly_widgets_content_item_title_rewrite($view->result[0]->nid);
}
}
}