You are here

function addthis_menu in AddThis 6.3

Same name and namespace in other branches
  1. 5.2 addthis.module \addthis_menu()
  2. 6.2 addthis.module \addthis_menu()
  3. 7.4 addthis.module \addthis_menu()
  4. 7.2 addthis.module \addthis_menu()

Implementation of hook_menu().

File

./addthis.module, line 11
Provides integration with the AddThis.com bookmarking & sharing service.

Code

function addthis_menu() {
  $items = array();
  $items['admin/settings/addthis'] = array(
    'title' => 'AddThis',
    'description' => 'Configuration settings for AddThis integration.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'addthis_config_form',
    ),
    'access arguments' => array(
      'administer addthis',
    ),
    'file' => 'addthis.admin.inc',
  );
  $items['admin/settings/addthis/config'] = array(
    'title' => 'Configure',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/settings/addthis/templates'] = array(
    'title' => 'Templates',
    'description' => 'Settings for custom sharing templates offered by the AddThis API.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'addthis_templates_form',
    ),
    'access arguments' => array(
      'administer addthis',
    ),
    'file' => 'addthis.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/settings/addthis/custom'] = array(
    'title' => 'Customize services',
    'description' => 'Add HTML classes and attributes to individual Toolbox items.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'addthis_customize_form',
    ),
    'access arguments' => array(
      'administer addthis',
    ),
    'file' => 'addthis.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/settings/addthis/flush-services'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'addthis_flush_services',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'addthis.admin.inc',
  );
  return $items;
}