You are here

function notifications_content_install in Notifications 6.3

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.install \notifications_content_install()
  2. 6 notifications_content/notifications_content.install \notifications_content_install()
  3. 6.2 notifications_content/notifications_content.install \notifications_content_install()
  4. 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',
  ));
}