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

Contents of /contributions/modules/google_admanager/google_admanager.install

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


Revision 1.3 - (show annotations) (download) (as text)
Mon Oct 26 09:25:21 2009 UTC (4 weeks, 4 days ago) by toemaz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +12 -0 lines
File MIME type: text/x-php
Fix for inability to see banners when block cache is enabled http://drupal.org/node/351214 Thx webchick e.a.
1 <?php
2
3 function google_admanager_uninstall() {
4 // Remove tables.
5 drupal_uninstall_schema('google_admanager');
6
7 variable_del('google_admanager_account');
8 variable_del('google_admanager_ad_slots');
9 }
10
11 /**
12 * Update legacy blocks to use BLOCK_NO_CACHE cache mode, for compatibility
13 * with Drupal 6's block cache feature.
14 */
15 function google_admanager_update_6100() {
16 $ret = array();
17
18 $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'google_admanager'");
19
20 return $ret;
21 }

  ViewVC Help
Powered by ViewVC 1.1.2