You are here

function heartbeat_install in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 heartbeat.install \heartbeat_install()
  2. 7 heartbeat.install \heartbeat_install()

Implementation of hook_install().

File

./heartbeat.install, line 11

Code

function heartbeat_install() {
  drupal_load('module', 'heartbeat');

  // Create tables.
  drupal_install_schema('heartbeat');

  // Import access types
  heartbeat_check_access_types();

  // Try to import, synchronize and save  messages
  $info = heartbeat_gather_messages();

  // Module weights in core: put heartbeat after most modules in the chain.
  // especially core modules, rules, token and pathauto
  db_query("UPDATE {system} SET weight = 50 WHERE name = 'heartbeat'");
}