Skip to content

Instantly share code, notes, and snippets.

@batandwa
Created February 29, 2012 12:13
Show Gist options
  • Save batandwa/1940420 to your computer and use it in GitHub Desktop.
Save batandwa/1940420 to your computer and use it in GitHub Desktop.
Drupal 6 views snippet that goes into the header to help you see whic
<h2>Arguments</h2>
<strong>
<?php
$view = views_get_current_view();
print ucwords(str_replace('-', ' ',$view->args[0]));
print ucwords(str_replace('-', ' ',$view->args[1]));
print ucwords(str_replace('-', ' ',$view->args[2]));
//Add more lines and change the $view->args element for more arguments.
?>
</strong>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment