We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

unravelme1 on 04/30/08


Tagged

drupal views arguments


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

basicmagic
digiloper
panatlantica


Views Argument Handling Code | drupal.org


Published in: PHP 


URL: http://drupal.org/node/70145

  1. $tid = $args[0];
  2.  
  3. $vid = db_result(db_query("SELECT vid FROM {term_data} WHERE tid = '%d'", $tid));
  4.  
  5. // replace with your own $vid values
  6. if ($vid == 12)
  7. {
  8. $view->page_type = 'panels_threecol'; // replace with your desired view type
  9. }

Report this snippet 

You need to login to post a comment.