| 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 |
}
|