function flag_actions_menu in Flag 6
Same name and namespace in other branches
- 5 flag_actions.module \flag_actions_menu()
- 6.2 flag_actions.module \flag_actions_menu()
- 7.3 flag_actions.module \flag_actions_menu()
- 7.2 flag_actions.module \flag_actions_menu()
Implementation of hook_menu().
File
- ./
flag_actions.module, line 18 - Actions support for the Flag module.
Code
function flag_actions_menu() {
$items = array();
$items['admin/build/flags/actions'] = array(
'title' => 'Actions',
'page callback' => 'flag_actions_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer actions',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/build/flags/actions/add'] = array(
'title' => 'Add action',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'flag_actions_form',
NULL,
5,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer actions',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/flags/actions/delete'] = array(
'title' => 'Delete action',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'flag_actions_delete_form',
5,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer actions',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/flags/actions/configure'] = array(
'title' => 'Edit action',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'flag_actions_form',
5,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer actions',
),
'type' => MENU_CALLBACK,
);
return $items;
}