You are here

function cleaner_menu in Cleaner 5

Same name and namespace in other branches
  1. 6 cleaner.module \cleaner_menu()
  2. 7 cleaner.module \cleaner_menu()

Implementation of hook_menu().

File

./cleaner.module, line 22
Allows the admin to set a schedule for clearing caches and other stuff.

Code

function cleaner_menu($may_cache) {
  $items = array();
  if (!$may_cache) {
    $items[] = array(
      'path' => 'admin/settings/cleaner',
      'title' => t('Cleaner module settings'),
      'description' => t('Configure time-based clean up functions.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'cleaner_settings_form',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}