function sharebar_menu in ShareBar 6
Same name and namespace in other branches
- 7.2 sharebar.module \sharebar_menu()
- 7 sharebar.module \sharebar_menu()
Implements hook_menu().
File
- ./
sharebar.module, line 19 - Various module information.
Code
function sharebar_menu() {
// Administration pages.
$items['admin/settings/sharebar'] = array(
'title' => 'ShareBar',
'description' => 'Configure shareBar',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sharebar_settings',
),
'access arguments' => array(
'access ShareBar administer',
),
'file' => 'sharebar.admin.inc',
);
$items['admin/settings/sharebar/add'] = array(
'title' => t('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/settings/sharebar/edit'] = array(
'title' => t('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/settings/sharebar/del'] = array(
'title' => t('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',
);
$items['sharebar/ahah/csscontainer/callback'] = array(
'page callback' => 'sharebar_ahah_csscontainer_callback',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'sharebar.admin.inc',
);
return $items;
}