function notifications_content_install in Notifications 7
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.2 notifications_content/notifications_content.install \notifications_content_install()
- 6.3 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() {
// Set node actions for triggers
notifications_content_install_trigger_action('node_publish', 'notifications_content_node_post_action');
notifications_content_install_trigger_action('node_update', 'notifications_content_node_update_action');
// Set comment actions for triggers
notifications_content_install_trigger_action('comment_insert', 'notifications_content_comment_action');
notifications_content_install_trigger_action('comment_update', 'notifications_content_comment_action');
// Commented out for D7, not sure it is needed anymore
// 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', 'node_type' => 'node_type', 'author' => 'author'));
}