You are here

function addthis_menu in AddThis 5.2

Same name and namespace in other branches
  1. 6.3 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 38
Stand alone module file to handle AddThis button integration

Code

function addthis_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/addthis',
      'title' => t('AddThis'),
      'description' => t('Set username and customize look and feel for <a href="http://www.addthis.com/">AddThis</a> button.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'addthis_admin_settings',
      ),
      'access' => user_access('administer addthis'),
    );
  }
  return $items;
}