function notifications_custom_menu in Notifications 6.4
Same name and namespace in other branches
- 6 notifications_custom/notifications_custom.module \notifications_custom_menu()
Implementation of hook_menu().
File
- notifications_custom/
notifications_custom.module, line 35 - Custom notifications module
Code
function notifications_custom_menu() {
$items['admin/messaging/customsubs'] = array(
'title' => 'Custom subscriptions',
'description' => 'Create and manage custom subscriptions.',
'page callback' => 'notifications_custom_admin_page',
'access arguments' => array(
'administer notifications',
),
'file' => 'notifications_custom.admin.inc',
);
$items['admin/messaging/customsubs/overview'] = array(
'title' => 'Custom subscriptions',
//'description' => 'Create and manage custom subscriptions.',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/messaging/customsubs/csid/%notifications_custom'] = array(
'title' => 'Custom',
'description' => 'Create and manage custom subscriptions.',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'notifications_custom_form',
4,
),
'title callback' => 'notifications_custom_subscription_title',
'title arguments' => array(
4,
),
'access arguments' => array(
'administer notifications',
),
'file' => 'notifications_custom.admin.inc',
);
$items['admin/messaging/customsubs/csid/%notifications_custom/edit'] = array(
'title' => 'Edit',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/messaging/customsubs/csid/%notifications_custom/fields'] = array(
'title' => 'Fields',
'description' => 'Edit fields for custom subscription.',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'notifications_custom_fields_form',
4,
),
'access arguments' => array(
'administer notifications',
),
'file' => 'notifications_custom.admin.inc',
);
$items['admin/messaging/customsubs/csid/%notifications_custom/delete'] = array(
'title' => 'Delete',
'description' => 'Delete subscription type and user subscriptions.',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'notifications_custom_delete_confirm',
4,
),
'access arguments' => array(
'administer notifications',
),
'file' => 'notifications_custom.admin.inc',
'weight' => 100,
);
return $items;
}