Posted By

redhatmatt on 06/15/10


Tagged

url print args drupal


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Onfire60


Drupal print url args


 / Published in: PHP
 

To print out Drupal Arguments.

  1. <?php
  2.  
  3. print '<div align="left">';
  4. print '<br/>arg-0 :' .arg(0);
  5. print '<br/>arg-1 :' .arg(1);
  6. print '<br/>arg-2 :' .arg(2);
  7. print '<br/>q:' . $_GET['q'];
  8.  
  9. $view = $GLOBALS['current_view'];
  10. $args = $view->args;
  11.  
  12. print '<br/>args-0 :' .$args[0];
  13. print '<br/>args-1 :' .$args[1];
  14.  
  15. print '</div>';
  16.  
  17. ?>

Report this snippet  

You need to login to post a comment.