You are here

noreferrer.install in No Referrer 7

Same filename and directory in other branches
  1. 8 noreferrer.install

Uninstall and update hooks for No Referrer module.

File

noreferrer.install
View source
<?php

/**
 * @file
 * Uninstall and update hooks for No Referrer module.
 */

/**
 * Implements hook_uninstall().
 */
function noreferrer_uninstall() {
  variable_del('noreferrer_link');
  variable_del('noreferrer_noopener');
  variable_del('noreferrer_noreferrer');
  variable_del('noreferrer_publish');
  variable_del('noreferrer_subscribe_url');
  variable_del('noreferrer_whitelisted_domains');
}

/**
 * The rel="noopener" and rel="noreferrer" link types can now be toggled.
 */
function noreferrer_update_7001() {
  variable_set('noreferrer_noreferrer', TRUE);
  variable_set('noreferrer_noopener', FALSE);
}

Functions

Namesort descending Description
noreferrer_uninstall Implements hook_uninstall().
noreferrer_update_7001 The rel="noopener" and rel="noreferrer" link types can now be toggled.