You are here

function mb_menu in More Buttons 7

Implements hook_menu().

File

mb/mb.module, line 13
The More Buttons (MB) module allows to use additional buttons with Drupal.

Code

function mb_menu() {
  $items = array();
  $items['admin/config/mb'] = array(
    'title' => 'More Buttons',
    'position' => 'right',
    'weight' => -4,
    '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['admin/config/mb/buttons'] = array(
    'title' => 'Button settings',
    'description' => 'Administer the suite of More Buttons (MB) modules.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mb_admin',
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'file' => 'mb.admin.inc',
    'weight' => -10,
  );
  $items['admin/config/mb/buttons/values'] = array(
    'title' => 'Values',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/mb/buttons/reset'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mb_reset',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'mb.admin.inc',
  );
  return $items;
}