hook_views_post_render Drupal 6.x


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.