Drupal print url args

<?php

print '<div align="left">';
print '<br/>arg-0 :' .arg(0);
print '<br/>arg-1 :' .arg(1);
print '<br/>arg-2 :' .arg(2);
print '<br/>q:' . $_GET['q'];

$view = $GLOBALS['current_view'];
$args = $view->args;

print '<br/>args-0 :' .$args[0];
print '<br/>args-1 :' .$args[1];

print '</div>';

?>

source

Comments are closed.