Posted By

JuliaKM on 08/30/07


Tagged

textmate drupal taxonomy


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
WimLeers
kellyharding


Drupal - building taxonomy menu


 / Published in: HTML
 

  1. <?php
  2. if (arg(0) == 'taxonomy' && arg(1)=='term' && is_numeric(arg(2))) {
  3. $terms = taxonomy_get_term(arg(2));
  4.  
  5. }
  6. ?>
  7.  
  8. <pre><?php echo $terms->name ?></pre>
  9. <pre><?php echo arg(0); ?></pre>
  10. <pre><?php echo arg(1); ?></pre>
  11. <pre><?php echo arg(2); ?></pre>
  12.  

Report this snippet  

You need to login to post a comment.