noreferrer.install in No Referrer 7
Same filename and directory in other branches
Uninstall and update hooks for No Referrer module.
File
noreferrer.installView 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
Name | Description |
---|---|
noreferrer_uninstall | Implements hook_uninstall(). |
noreferrer_update_7001 | The rel="noopener" and rel="noreferrer" link types can now be toggled. |