/[drupal]/contributions/modules/atom/atom.install
ViewVC logotype

Contents of /contributions/modules/atom/atom.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Mon Sep 21 16:21:21 2009 UTC (2 months, 1 week ago) by davereid
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +6 -1 lines
File MIME type: text/x-php
#583534 by Dave Reid: Added atom.pages.inc.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2