function workflow_notify_menu in Workflow 7.2
Same name and namespace in other branches
- 7 workflow_notify/workflow_notify.module \workflow_notify_menu()
Implements hook_menu().
File
- workflow_notify/
workflow_notify.module, line 11 - Notify roles for Workflow state transitions.
Code
function workflow_notify_menu() {
$items = array();
$admin_path = WORKFLOW_ADMIN_UI_PATH;
$id_count = count(explode('/', $admin_path));
$items["{$admin_path}/manage/%workflow/notify"] = array(
'title' => 'Notifications',
'file' => 'workflow_notify.pages.inc',
'access arguments' => array(
'administer workflow',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'workflow_notify_settings_form',
$id_count + 1,
),
'type' => MENU_CALLBACK,
);
return $items;
}