You are here

function composer_manager_menu in Composer Manager 7

Same name and namespace in other branches
  1. 6.2 composer_manager.module \composer_manager_menu()
  2. 6 composer_manager.module \composer_manager_menu()
  3. 7.2 composer_manager.module \composer_manager_menu()

Implements hook_menu().

File

./composer_manager.module, line 39
Provides consolidated management of third-party Composer-compatible packages required by contributed modules.

Code

function composer_manager_menu() {
  $items = array();
  $items['admin/config/system/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/config/system/composer-manager/packages'] = array(
    'title' => 'Packages',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/system/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;
}