You are here

cleaner.install in Cleaner 6

Same filename and directory in other branches
  1. 5 cleaner.install
  2. 7 cleaner.install

Allows the admin to set a schedule for clearing caches and other stuff.

File

cleaner.install
View source
<?php

/**
 * @file
 * Allows the admin to set a schedule for clearing caches and other stuff.
 */

/**
 * Implementation of hook_enable().
 */
function cleaner_enable() {
  drupal_set_message(t('The Cleaner module settings are <a href="!url">here</a>.', array(
    '!url' => url('admin/settings/cleaner'),
  )));
}

/**
 * Implementation of hook_uninstall().
 */
function cleaner_uninstall() {
  variable_del('cleaner_cron');
  variable_del('cleaner_clear_cache');
  variable_del('cleaner_empty_watchdog');
  variable_del('cleaner_clean_sessions');
  variable_del('cleaner_clean_cssdir');
  variable_del('cleaner_clean_jsdir');
  variable_del('cleaner_optimize_db');
}

Functions

Namesort descending Description
cleaner_enable Implementation of hook_enable().
cleaner_uninstall Implementation of hook_uninstall().