function views_deploy_menu in Deploy - Content Staging 5
Same name and namespace in other branches
- 6 modules/views_deploy/views_deploy.module \views_deploy_menu()
implementation of hook menu
File
- views_deploy/
views_deploy.module, line 6
Code
function views_deploy_menu() {
$items = array();
$plans = deploy_get_plans();
if (!empty($plans)) {
$items[] = array(
'path' => 'admin/build/views/deploy',
'title' => t('Deploy'),
'description' => t('Add a view to a deployment plan.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'views_deploy_add_form',
$plans,
),
'access' => user_access('add items to deployment plan'),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}