| 1 |
<?php |
<?php |
| 2 |
// $Id: notify.install,v 1.4.2.3 2007/08/19 22:42:14 augustin Exp $ |
// $Id: notify.install,v 1.4 2006/12/22 04:27:55 robroy Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install() |
* Implementation of hook_install() |
| 47 |
} |
} |
| 48 |
|
|
| 49 |
/** |
/** |
|
* Implementation of hook_uninstall() |
|
|
*/ |
|
|
function notify_uninstall() { |
|
|
db_query("DROP TABLE {notify}"); |
|
|
variable_del('notify_send'); |
|
|
variable_del('notify_attempts'); |
|
|
variable_del('notify_send_last'); |
|
|
} |
|
|
|
|
|
/** |
|
| 50 |
* Alter weight of notify to run after scheduler. |
* Alter weight of notify to run after scheduler. |
| 51 |
*/ |
*/ |
| 52 |
function notify_update_1() { |
function notify_update_1() { |
| 57 |
// is guaranteed to be an integer. |
// is guaranteed to be an integer. |
| 58 |
$ret[] = update_sql("UPDATE {system} SET weight = $weight WHERE name = 'notify'"); |
$ret[] = update_sql("UPDATE {system} SET weight = $weight WHERE name = 'notify'"); |
| 59 |
return $ret; |
return $ret; |
|
} |
|
|
|
|
|
/** |
|
|
* Clear {cache_menu} after the admin menu changes. |
|
|
*/ |
|
|
function notify_update_2() { |
|
|
$ret = array(); |
|
|
drupal_set_message(t('The settings page for the notify.module is now to be found in Administer > Site configuration > Notification settings.')); |
|
|
return $ret; |
|
| 60 |
} |
} |