Revision: 5632
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 20, 2008 13:32 by metareason
Initial Code
// get the node id for the group // expecting site urls to be in format group/group-name // HACK: get the internal (source) url from the first part of the path with arg, expecting to find 'group/group-name' $group_url = drupal_lookup_path('source', 'group/'.$args[0]); // extract the group node id $group_url_exploded = explode('/', $group_url); $args[0] = $group_url_exploded[1]; return $args;
Initial URL
http://www.ninelanterns.com.au
Initial Description
Add this arg code plus set first argument as "OG: Group nid(s)"
Initial Title
Views argument handling code: get gid from pretty group path
Initial Tags
drupal
Initial Language
PHP