You are here

function linkchecker_menu in Link checker 6.2

Same name and namespace in other branches
  1. 5.2 linkchecker.module \linkchecker_menu()
  2. 5 linkchecker.module \linkchecker_menu()
  3. 7 linkchecker.module \linkchecker_menu()

Implementation of hook_menu().

File

./linkchecker.module, line 76
This module periodically check links in given node types, blocks, cck fields, etc.

Code

function linkchecker_menu() {
  $items['admin/settings/linkchecker'] = array(
    'title' => 'Link checker',
    'description' => 'Configure the content types that should be checked for broken links and how the hypertext links will be checked and reported and repaired.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'linkchecker_admin_settings_form',
    ),
    'access arguments' => array(
      'administer linkchecker',
    ),
    'file' => 'includes/linkchecker.admin.inc',
  );
  $items['admin/reports/linkchecker'] = array(
    'title' => 'Broken links',
    'description' => 'Shows a list of broken links in content.',
    'page callback' => 'linkchecker_admin_report_page',
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'access broken links report',
    ),
    'file' => 'includes/linkchecker.pages.inc',
  );

  // Add the user menu item after node/edit tab.
  $items['user/%user/linkchecker'] = array(
    'title' => 'Broken links',
    'description' => 'Shows a list of broken links in content.',
    'page callback' => 'linkchecker_user_report_page',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => '_linkchecker_user_access_account_broken_links_report',
    'access arguments' => array(
      1,
    ),
    'file' => 'includes/linkchecker.pages.inc',
    'weight' => 3,
  );
  $items['linkchecker/%linkchecker_link/edit'] = array(
    'title' => 'Edit link settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'linkchecker_link_edit_form',
      1,
    ),
    'access callback' => '_linkchecker_user_access_edit_link_settings',
    'access arguments' => array(
      1,
    ),
    'file' => 'includes/linkchecker.pages.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}