Drupal Modules

ratings

Ratings

AttributeAverage
Features5 / 5
Reliability5 / 5
Ease Of Use5 / 5
Documentation4 / 5
Vote Count1
averages
module overview

Module Overview

Drupal.org Excerpt:

Argument Picker is a simple API to access and elaborate arguments in a flexible way. Basically it allows, given URL arguments like: example.com/myview/make:Volkswagen/model:Polo/year:2008/ to retrieve one of those arguments through a function: arg_picker_get_selector_argument("make") which - in the... [More...]

Details:

Maintainer:Aldus
Links:
Categories:Features package, Path management, Utility, Views
downloads

Downloads

VersionDateFilesRelease notes
6.x-1.x-dev2011-Feb-25DownloadDevelopment
Total Downloads: 14 "Development" releases should be considered in beta.

reviews

Reviews

Options: Add a review

rating

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.

Twitter


Sponsored By


iO1 Drupal Consultants

Top Drupal Books

  1. Using Drupal (O'Reilly)
  2. Definitive Guide to D7
  3. Beginning Drupal 7
  4. Drupal For Dummies
  5. Pro Drupal Development 7
Module Finder New Modules RSS Feeds