You are here

function upgrade_check_menu in Drupal 8 upgrade evaluation 7

Same name and namespace in other branches
  1. 6 upgrade_check.module \upgrade_check_menu()

Implements hook_menu().

File

./upgrade_check.module, line 22

Code

function upgrade_check_menu() {
  $items[UPGRADE_CHECK_PATH] = array(
    'title' => 'Drupal 8 upgrade',
    'description' => 'Drupal 8 upgrade.',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'access administration pages',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  $items[UPGRADE_CHECK_EVALUATION] = array(
    'title' => 'Drupal 8 upgrade evaluation',
    'description' => 'Drupal 8 upgrade evaluation.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_upgrade_check_form',
    ),
    'access arguments' => array(
      UPGRADE_CHECK_ACCESS,
    ),
  );
  $items[UPGRADE_CHECK_PATH . '/settings'] = array(
    'title' => 'Drupal 8 upgrade settings',
    'description' => 'Drupal 8 upgrade settings page.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_upgrade_check_settings_form',
    ),
    'access arguments' => array(
      UPGRADE_CHECK_ACCESS,
    ),
  );
  $items[UPGRADE_CHECK_RESULT] = array(
    'title' => 'Drupal 8 upgrade user data',
    'description' => 'User data for authorisation.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_upgrade_check_result_form',
    ),
    'access arguments' => array(
      UPGRADE_CHECK_ACCESS,
    ),
  );
  $items[UPGRADE_CHECK_JSON] = array(
    'title' => 'Download json result',
    'description' => 'Download json result page.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_upgrade_check_json_form',
    ),
    'access arguments' => array(
      UPGRADE_CHECK_ACCESS,
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}