Posted By

ReeceMarsland on 01/07/10


Tagged

drupal views hooks


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mbria
tronx


hook_views_post_render Drupal 6.x


 / Published in: PHP
 

this specifically checks the view name and then checks the arg length altering the page title if its a match

  1. /**
  2. * Implementation of hook_views_post_render().
  3. */
  4. function local_views_post_render(&$view, &$output, &$cache) {
  5. if($view->name = 'events') {
  6. if(strlen($view->args[0]) == '4'){
  7. drupal_set_title($view->args[0]);
  8. }
  9. }
  10. }

Report this snippet  

You need to login to post a comment.