You are here

function vid_to_arg in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.module \vid_to_arg()
  2. 6.4 revisioning.module \vid_to_arg()
  3. 6.3 revisioning.module \vid_to_arg()

Perform path manipulations for menu items containing the %vid wildcard.

For example the ones from revisioning_menu().

See also

http://drupal.org/node/500864

File

./revisioning.module, line 350
Allows content to be updated and reviewed before submitting it for publication, while the current live revision remains unchanged and publicly visible until the changes have been reviewed and found fit for publication by a moderator.

Code

function vid_to_arg($arg, &$map, $index) {
  if (empty($arg)) {

    // For e.g. node/%/revisions.
    // Suppresses subtabs of Revisions tab where %vid is omitted.
    $map = array();
  }
  return $arg;
}