You are here

user_prune.install in User Prune 7

Administration prune_user installation functions.

File

user_prune.install
View source
<?php

/**
 * @file
 * Administration prune_user installation functions.
 */

/**
 * Implements hook_install().
 */
function user_prune_install() {
  variable_set('user_prune_user_status', 'all');
  variable_set('user_prune_cron_checkbox', FALSE);
  variable_set('user_prune_user_roles_checkbox', array());
  variable_set('user_prune_no_comment', 0);
  variable_set('user_prune_no_node', 0);
  variable_set('user_prune_prune_per_run', '10');
  variable_set('user_prune_time_year', 0);
  variable_set('user_prune_time_month', 0);
  variable_set('user_prune_time_day', 0);
}

/**
 * Implements hook_uninstall().
 */
function user_prune_uninstall() {
  variable_del('user_prune_time_unit_multiply');
  variable_del('user_prune_time_unit');
  variable_del('user_prune_user_status');
  variable_del('user_prune_cron_checkbox');
  variable_del('user_prune_prune_per_run');
  variable_del('user_prune_user_roles_checkbox');
  variable_del('user_prune_no_comment');
  variable_del('user_prune_no_node');
  variable_del('user_prune_time_year');
  variable_del('user_prune_time_month');
  variable_del('user_prune_time_day');
  variable_del('user_prune_time_unit_multiply_preview');
  variable_del('user_prune_time_unit_preview');
  variable_del('user_prune_user_status_preview');
  variable_del('user_prune_cron_checkbox_preview');
  variable_del('user_prune_user_roles_checkbox_preview');
  variable_del('user_prune_no_comment_preview');
  variable_del('user_prune_no_node_preview');
  variable_del('user_prune_prune_per_run_preview');
  variable_del('user_prune_time_year_preview');
  variable_del('user_prune_time_month_preview');
  variable_del('user_prune_time_day_preview');
  variable_del('user_prune_no_subscriptions');
  variable_del('user_prune_no_og');
  variable_del('user_prune_no_entityform');
  variable_del('user_prune_no_tmgmt');
  variable_del('user_prune_no_subscriptions_preview');
  variable_del('user_prune_no_og_preview');
  variable_del('user_prune_no_entityform_preview');
  variable_del('user_prune_no_tmgmt_preview');
}

Functions

Namesort descending Description
user_prune_install Implements hook_install().
user_prune_uninstall Implements hook_uninstall().