You are here

r4032login.install in Redirect 403 to User Login 7

Same filename and directory in other branches
  1. 5 r4032login.install
  2. 6 r4032login.install

Install, update and uninstall functions for the r4032login module.

File

r4032login.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the r4032login module.
 */

/**
 * Implements hook_enable().
 */
function r4032login_enable() {
  variable_set('site_403', 'r4032login');
}

/**
 * Implements hook_disable().
 */
function r4032login_disable() {
  variable_del('site_403');
}

/**
 * Implements hook_uninstall().
 */
function r4032login_uninstall() {
  variable_del('r4032login_display_denied_message');
  variable_del('r4032login_access_denied_message');
  variable_del('r4032login_user_login_path');
  variable_del('r4032login_default_redirect_code');
  variable_del('r4032login_match_noredirect_pages');
  variable_del('r4032login_redirect_to_destination');
}

/**
 * Drupal 7 has better handling for visiting the user registration page while logged in.
 */
function r4032login_update_7000() {
  variable_del('r4032login_user_register_message');
}

Functions

Namesort descending Description
r4032login_disable Implements hook_disable().
r4032login_enable Implements hook_enable().
r4032login_uninstall Implements hook_uninstall().
r4032login_update_7000 Drupal 7 has better handling for visiting the user registration page while logged in.