Posted By

lexx on 02/07/09


Tagged

drupal views


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

panatlantica
EkTrOn


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


 / Published in: PHP
 

URL: http://drupaleasy.com/blogs/ryanprice/2008/06/using-views-2-drupal-6-create-a-related-pages-block

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

  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  

You need to login to post a comment.