function composer_manager_menu in Composer Manager 6
Same name and namespace in other branches
- 6.2 composer_manager.module \composer_manager_menu()
- 7.2 composer_manager.module \composer_manager_menu()
- 7 composer_manager.module \composer_manager_menu()
Implements hook_menu().
File
- ./
composer_manager.module, line 27 - Provides consolidated management of third-party Composer-compatible packages required by contributed modules.
Code
function composer_manager_menu() {
$items = array();
$items['admin/settings/composer-manager'] = array(
'title' => 'Composer Manager',
'description' => 'View the status of packages managed by Composer and configure the location of the composer.json file and verdor directory.',
'page callback' => 'composer_manager_packages_page',
'access arguments' => array(
'administer site configuration',
),
'file' => 'composer_manager.admin.inc',
);
$items['admin/settings/composer-manager/packages'] = array(
'title' => 'Packages',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/composer-manager/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'composer_manager_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'composer_manager.admin.inc',
'type' => MENU_LOCAL_TASK,
);
return $items;
}