| 1 |
<?php
|
| 2 |
// $Id: atom.install,v 1.5 2009/09/21 15:25:05 davereid Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Install, update and uninstall functions for the atom module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implementation of hook_uninstall().
|
| 11 |
*/
|
| 12 |
function atom_uninstall() {
|
| 13 |
variable_del('atom_feed_entries');
|
| 14 |
variable_del('atom_display_summary');
|
| 15 |
variable_del('atom_display_content');
|
| 16 |
|
| 17 |
// Remove unused variables if updates weren't performed.
|
| 18 |
variable_del('atom_ad_location');
|
| 19 |
variable_del('atom_ad_code');
|
| 20 |
}
|
| 21 |
|
| 22 |
/**
|
| 23 |
* Remove support for built-in advertising.
|
| 24 |
*/
|
| 25 |
function atom_update_6100() {
|
| 26 |
if (variable_get('atom_ad_code', '')) {
|
| 27 |
drupal_set_message("Atom module's built-in advertising feature has been removed. For a better solution, use the <a href=\"http://drupal.org/project/ad\">Ad module</a> and it's sub-module, Ad embed. If you are just using Google Adsense, the <a href=\"http://drupal.org/project/adsense_injector\">Adsense injector module</a> is recommended.", 'warning');
|
| 28 |
}
|
| 29 |
variable_del('atom_ad_location');
|
| 30 |
variable_del('atom_ad_code');
|
| 31 |
return array();
|
| 32 |
}
|