You are here

function service_links_menu in Service links 5

Same name and namespace in other branches
  1. 6.2 service_links.module \service_links_menu()
  2. 6 service_links.module \service_links_menu()
  3. 7.2 service_links.module \service_links_menu()

Implementation of hook_menu().

File

./service_links.module, line 217
Mantainer: Fabio Mucciante aka TheCrow Original Author: Fredrik Jonsson fredrik at combonet dot se A module that adds Digg, del.icio.us, reddit, Technorati etc. links to nodes.

Code

function service_links_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/servicelinks',
      'title' => t('Service links'),
      'description' => t('Control which and where service links should be active.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'service_links_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}