You are here

function heartbeat_install in Heartbeat 6.4

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

Implementation of hook_install().

File

./heartbeat.install, line 13
Installation file for the heartbeat module. @author Jochen Stals - Menhir - www.menhir.be

Code

function heartbeat_install() {

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

  // 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'");
  drupal_load('module', 'heartbeat');

  // Import access types
  heartbeat_check_access_types();

  // Import heartbeat messages

  //heartbeat_messages_rebuild();
  heartbeat_create_messages();
}