You are here

function linkchecker_menu in Link checker 7

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

Implements hook_menu().

File

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

Code

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

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