function mail_logger_enable in Mail Logger 5
Same name and namespace in other branches
- 6 mail_logger.install \mail_logger_enable()
- 7 mail_logger.install \mail_logger_enable()
Implementation of hook_enable()
File
- ./
mail_logger.install, line 57
Code
function mail_logger_enable() {
//in case there's another module that wants to be executed last we will run these queries to restore highest weight for mail_logger
$max_weight = db_result(db_query("SELECT weight FROM {system} WHERE name LIKE 'mail_logger'"));
db_query("UPDATE {system} SET weight = %d WHERE name LIKE 'mail_logger' LIMIT 1", $max_weight + 999);
}