You are here

enforce_revlog.install in Enforce revision log message 6

Same filename and directory in other branches
  1. 8 enforce_revlog.install
  2. 7 enforce_revlog.install

(Un)Installation routines for enforce_revlog

File

enforce_revlog.install
View source
<?php

/**
 * @file
 * (Un)Installation routines for enforce_revlog
 */

/**
 * Implementation of hook_install().
 */
function enforce_revlog_install() {
  $t = get_t();
  drupal_set_message($t('Go to the <a href="@settings">settings page</a> to configure enforce_revlog', array(
    '@settings' => url('admin/settings/enforce_revlog'),
  )));
}

/**
 * Implementation of hook_uninstall().
 */
function enforce_revlog_uninstall() {

  // Delete admin_skip variable. Kept for backward compatibility
  variable_del('enforce_revlog_admin_skip');

  // Delete revision revert variable
  variable_del('enforce_revlog_revision_revert');

  /**
   * Delete node type mapping variables.
   * @see enforce_revlog_node_type()
   */
  foreach (node_get_types() as $type => $name) {
    variable_del('enforce_revlog_node_type_' . $type);
  }
}

Functions

Namesort descending Description
enforce_revlog_install Implementation of hook_install().
enforce_revlog_uninstall Implementation of hook_uninstall().