You are here

unpublished_nodes_redirect.install in Unpublished Nodes Redirect 7

Install file.

File

unpublished_nodes_redirect.install
View source
<?php

/**
 * @file
 *
 * Install file.
 */

/**
 * Implements hook_uninstall().
 */
function unpublished_nodes_redirect_uninstall() {

  // Remove unwanted variables.
  foreach (node_type_get_types() as $key => $type) {
    variable_del($key . '_unpublished_redirect_path');
    variable_del($key . '_unpublished_redirect_response_code');
  }
}

Functions