You are here

securepages.install in Secure Pages 6

Provides installation details for Secure Pages

File

securepages.install
View source
<?php

/**
 * @file
 * Provides installation details for Secure Pages
 */

/**
 * Implementation of hook_enable().
 */
function securepages_enable() {
  drupal_set_message(t('Secure pages needs to be enabled on !settings', array(
    '!settings' => l(t('admin/build/securepages'), 'admin/build/securepages'),
  )));
}

/**
 * Implementation of hook_uninstall().
 */
function securepages_uninstall() {
  variable_del('securepages_enable');
  variable_del('securepages_switch');
  variable_del('securepages_secure');
  variable_del('securepages_pages');
  variable_del('securepages_ignore');
  variable_del('securepages_basepath');
  variable_del('securepages_basepath_ssl');
  variable_del('securepages_ssl_checks');
}

/**
 * Implementation of hook_update_n().
 */
function securepages_update_1() {
  variable_set('securepages_enable', 1);
  return array();
}

Functions

Namesort descending Description
securepages_enable Implementation of hook_enable().
securepages_uninstall Implementation of hook_uninstall().
securepages_update_1 Implementation of hook_update_n().