function html_title_views_pre_render in HTML Title 7
Implementation of hook_views_pre_render()
File
- views/
html_title.views.inc, line 21 - Views handler definitions for html_title module.
Code
function html_title_views_pre_render(&$view) {
// Strip tags from titles in RSS feed
if ($view->plugin_name == 'rss') {
// Handle "content" style plugin
if (property_exists($view->style_plugin->row_plugin, 'nodes') && count($view->style_plugin->row_plugin->nodes)) {
//$view->style_plugin->uses_row_plugin()) {
foreach ($view->style_plugin->row_plugin->nodes as $nid => $node) {
$view->style_plugin->row_plugin->nodes[$nid]->title = strip_tags($node->title);
}
}
elseif (property_exists($view, 'result') && count($view->result)) {
foreach ($view->result as $key => $result) {
if (property_exists($result, 'node_title')) {
$view->result[$key]->node_title = strip_tags($result->node_title);
}
}
}
}
}