You are here

function log_cleanup_menu in Util 7

Same name and namespace in other branches
  1. 6.3 contribs/log_cleanup/log_cleanup.module \log_cleanup_menu()

Implements hook_menu().

File

contribs/log_cleanup/log_cleanup.module, line 60
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/config/system/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;
}