function linkchecker_menu in Link checker 5
Same name and namespace in other branches
- 5.2 linkchecker.module \linkchecker_menu()
- 6.2 linkchecker.module \linkchecker_menu()
- 7 linkchecker.module \linkchecker_menu()
Implementation of hook_menu().
File
- ./
linkchecker.module, line 24 - This module periodically check html links referenced by drupal nodes Developed and maintained by Marek Tichy, marek@ecn.cz
Code
function linkchecker_menu($may_cache) {
$items = array();
$items[] = array(
'path' => 'admin/settings/linkchecker',
'title' => t('Link checker'),
'description' => t('Link checker configuration'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'linkchecker_admin_settings',
),
'access' => user_access('administer linkchecker'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'linkchecker/report' . $path,
'title' => t('Broken links report'),
'callback' => 'linkchecker_report',
'callback arguments' => array(
'node',
$path,
),
'access' => user_access('access linkchecker'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/linkchecker/debug' . $path,
'title' => t('Linkchecker debug mode'),
'callback' => 'linkchecker_debug_run',
'callback arguments' => array(
'node',
$path,
),
'access' => user_access('administer linkchecker'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}