function notify_update_1 in Notify 5.2
Same name and namespace in other branches
- 5 notify.install \notify_update_1()
Alter weight of notify to run after scheduler.
File
- ./
notify.install, line 51
Code
function notify_update_1() {
$ret = array();
$weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'scheduler'"));
$weight += 10;
// update_sql() doesn't take other parameters, but this is safe, since $weight
// is guaranteed to be an integer.
$ret[] = update_sql("UPDATE {system} SET weight = {$weight} WHERE name = 'notify'");
return $ret;
}