function vid_to_arg in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.module \vid_to_arg()
- 6.3 revisioning.module \vid_to_arg()
- 7 revisioning.module \vid_to_arg()
Perform path manipulations for menu items containing the %vid wildcard.
For example the ones from revisioning_menu().
See also
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;
}