
nice solution to handle arguments in a clean way
This very simple (for now at least) module allows the user(s) to forget using the arg($index) function, and allowing labels for URL arguments... exactly like they were query strings.
In example it can be extremely useful for setting up php arguments for programatic views, where instead of doing:
www.yoursite.com/yourview/some_arg/some_...
and then writing, in example:
<?php
return arg(2);
?>
you can do:
www.yoursite.com/yourview/arg1:some_arg/...
in this example, calling:
<?php
return arg_picker_get_view_argument("arg2");
?>
would return some_other_arg . So you can just use labels and don't need to know the index of your argument, or to put them in an exact order...
documentation might however be written better.
Review by Norad2 [info] on June 28, 2010 - 11:18