function subscriptions_content_install in Subscriptions 6
Same name and namespace in other branches
- 5.2 subscriptions_content.install \subscriptions_content_install()
- 7 subscriptions_content.install \subscriptions_content_install()
- 2.0.x subscriptions_content/subscriptions_content.install \subscriptions_content_install()
Implementation of hook_install().
File
- ./
subscriptions_content.install, line 11 - Subscriptions Content module installation.
Code
function subscriptions_content_install() {
// subscriptions_content.module needs to be heavier than taxonomy.module --
// otherwise term_node record has not been written when subscriptions_queue() is called!
// subscriptions_content_cron() will ensure this constraint at run-time.
$weight = 1 + db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy' AND type = 'module'"));
db_query("UPDATE {system} SET weight = %d WHERE name = 'subscriptions_content' AND type = 'module'", $weight);
}