function notifications_content_install in Notifications 6.2
Same name and namespace in other branches
- 6.4 notifications_content/notifications_content.install \notifications_content_install()
- 6 notifications_content/notifications_content.install \notifications_content_install()
- 6.3 notifications_content/notifications_content.install \notifications_content_install()
- 7 notifications_content/notifications_content.install \notifications_content_install()
Implementation of hook_install().
1 call to notifications_content_install()
- notifications_content_update_6000 in notifications_content/
notifications_content.install - Update module weight
File
- notifications_content/
notifications_content.install, line 6
Code
function notifications_content_install() {
// Module weight. It must run after most modules, to make sure they've done
// their work before we add the notifications queries.
db_query("UPDATE {system} SET weight = 100 WHERE name = 'notifications_content' AND type = 'module'");
// Enable the most common subscription types
variable_set('notifications_content_type', array(
'thread' => 'thread',
'nodetype' => 'nodetype',
'author' => 'author',
));
}