You are here

function modules_weight_menu in Modules weight 7

Implements hook_menu().

File

./modules_weight.module, line 51
Modules weight functionality implementation.

Code

function modules_weight_menu() {
  $items = array();
  $items['admin/config/system/modules-weight'] = array(
    'title' => 'Modules Weight',
    'description' => 'Provide an interface to change the modules weight.',
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'modules_weight_admin_config_page_form',
    ),
    'access arguments' => array(
      'administer modules weight',
    ),
    'file' => 'modules_weight.admin.inc',
  );
  $items['admin/config/system/modules-weight/default'] = array(
    'title' => 'Modules Weight',
    'description' => 'Provide an interface to change the modules weight.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/config/system/modules-weight/configuration'] = array(
    'title' => 'Settings',
    'description' => 'Modules Weight Settings',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'modules_weight_configuration_form',
    ),
    'access arguments' => array(
      'administer modules weight',
    ),
    'file' => 'modules_weight.admin.inc',
    'weight' => 2,
  );
  return $items;
}