function log_cleanup_menu in Util 6.3
Same name and namespace in other branches
- 7 contribs/log_cleanup/log_cleanup.module \log_cleanup_menu()
Implements hook_menu().
File
- contribs/
log_cleanup/ log_cleanup.module, line 56 - Clean up watchdog messages.
Code
function log_cleanup_menu() {
$items = array();
$items['cleanup/clean'] = array(
'title' => 'Clean Up',
'page callback' => '_log_cleanup_manual',
'access arguments' => array(
'access administration pages',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/util/cleanup'] = array(
'title' => 'Log Cleanup Settings',
'description' => 'Set log cleaning intervals.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'log_cleanup_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}