You are here

function configuration_menu in Configuration Management 7

Implements hook_menu().

File

./configuration.module, line 113
Module file for the configuration module, which enables the capture and management of configuration in Drupal.

Code

function configuration_menu() {
  $items['admin/config/system/configuration'] = array(
    'title' => 'Configuration Management',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'configuration_tracking_form',
    ),
    'access arguments' => array(
      'access configuration management',
    ),
    'description' => 'Configuration Management for Drupal 7',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'configuration.admin.inc',
  );
  $items['admin/config/system/configuration/tracking'] = array(
    'title' => 'Tracking',
    'weight' => -1,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/system/configuration/notracking'] = array(
    'title' => 'Not tracking',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'configuration_notracking_form',
    ),
    'access arguments' => array(
      'access configuration management',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'configuration.admin.inc',
  );

  // $items['admin/config/system/configuration/activate'] = array(
  //    'title' => 'Activate new configuration'),
  //    'page callback' => 'drupal_get_form',
  //    'page arguments' => array('configuration_activate_form'),
  //    'access arguments' => array('access configuration management'),
  //    'type' => MENU_LOCAL_TASK,
  //    'file' => 'configuration.admin.inc',
  //    'weight' => 5,
  //  );
  $items['admin/config/system/configuration/migrate'] = array(
    'title' => 'Migrate',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'configuration_migrate_form',
    ),
    'access arguments' => array(
      'access configuration management',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'configuration.admin.inc',
    'weight' => 7,
  );
  $items['admin/config/system/configuration/migrate/export'] = array(
    'title' => 'Export',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 8,
  );
  $items['admin/config/system/configuration/migrate/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'configuration_import_form',
    ),
    'access arguments' => array(
      'access configuration management',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'configuration.admin.inc',
    'weight' => 9,
  );
  $items['admin/config/system/configuration/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'configuration_settings_form',
    ),
    'access arguments' => array(
      'access configuration management',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'configuration.admin.inc',
    'weight' => 10,
  );
  $items['admin/config/system/configuration/config/%/%/delete'] = array(
    'title' => 'Are you sure you want to stop tracking this config?',
    'page callback' => 'configuration_confirm_delete_page',
    'access arguments' => array(
      'access configuration management',
    ),
    'file' => 'configuration.admin.inc',
    'page arguments' => array(
      5,
      6,
    ),
  );
  if (module_exists('diff')) {
    $items['admin/config/system/configuration/%/%/diff'] = array(
      'title' => 'Review overrides',
      'description' => 'Compare activestore and datastore.',
      'page callback' => 'configuration_diff',
      'page arguments' => array(
        4,
        5,
      ),
      'access arguments' => array(
        'access configuration management',
      ),
      'file' => 'configuration.admin.inc',
    );
  }
  return $items;
}