Using Views 2 and Drupal 6 to Create a Related Pages Block

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

I just wanted to have the argument code as text. It is provided as an image.

Copy this code and paste it in your HTML
  1. $node = node_load(arg(1));
  2. if($node){
  3. foreach($node->taxonomy as $term) { $terms[] = $term->tid;}
  4. return implode('+',$terms);
  5. } else {return;}


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.