You are here

function sharebar_menu in ShareBar 7

Same name and namespace in other branches
  1. 6 sharebar.module \sharebar_menu()
  2. 7.2 sharebar.module \sharebar_menu()

Implements hook_menu().

File

./sharebar.module, line 26
Various module information.

Code

function sharebar_menu() {

  // Administration pages.
  $items['admin/config/sharebar'] = array(
    'title' => 'ShareBar',
    'description' => 'Configure shareBar',
    'position' => 'left',
    'page callback' => 'sharebar_admin_menu_block_page',
    'access arguments' => array(
      'access sharebar administer',
    ),
    'file' => 'sharebar.admin.inc',
  );
  $items['admin/config/sharebar/settings'] = array(
    'title' => 'Configure shareBar',
    'description' => 'Configure shareBar',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sharebar_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access sharebar administer',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'sharebar.admin.inc',
    'weight' => -10,
  );
  $items['admin/config/sharebar/add'] = array(
    'title' => 'Add New Button',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sharebar_addbutton',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access sharebar administer',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sharebar.admin.inc',
  );
  $items['admin/config/sharebar/edit'] = array(
    'title' => 'Edit Button',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sharebar_addbutton',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access sharebar administer',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sharebar.admin.inc',
  );
  $items['admin/config/sharebar/del'] = array(
    'title' => 'Delete Button',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sharebar_button_confirm_delete',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access sharebar administer',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sharebar.admin.inc',
  );
  return $items;
}