/ Published in: PHP

this specifically checks the view name and then checks the arg length altering the page title if its a match
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Implementation of hook_views_post_render(). */ function local_views_post_render(&$view, &$output, &$cache) { if($view->name = 'events') { drupal_set_title($view->args[0]); } } }
Comments
