function addthis_menu in AddThis 7.4
Same name and namespace in other branches
- 5.2 addthis.module \addthis_menu()
- 6.3 addthis.module \addthis_menu()
- 6.2 addthis.module \addthis_menu()
- 7.2 addthis.module \addthis_menu()
Implements hook_menu().
File
- ./
addthis.module, line 61
Code
function addthis_menu() {
$menu_items['admin/config/user-interface/addthis'] = array(
'title' => 'AddThis',
'description' => 'Configure AddThis settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'addthis_admin_settings_form',
),
'access arguments' => array(
AddThis::PERMISSION_ADMINISTER_ADDTHIS,
),
'type' => MENU_NORMAL_ITEM,
'file' => AddThis::ADMIN_INCLUDE_FILE,
'weight' => 0,
);
$menu_items['admin/config/user-interface/addthis/basic'] = array(
'title' => 'Basic settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$menu_items['admin/config/user-interface/addthis/advanced'] = array(
'title' => 'Advanced settings',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'addthis_admin_settings_advanced_form',
),
'access arguments' => array(
AddThis::PERMISSION_ADMINISTER_ADDTHIS,
),
'file' => AddThis::ADMIN_INCLUDE_FILE,
'weight' => 10,
);
return $menu_items;
}