You are here

function heartbeat_create_messages in Heartbeat 6.4

Initial insert of messages, before heartbeat exists in drupal as module Assumption made here that heartbeat is already included as file

1 call to heartbeat_create_messages()
heartbeat_install in ./heartbeat.install
Implementation of hook_install().

File

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

Code

function heartbeat_create_messages() {

  // Check existing modules for a heartbeat implementation of this hook
  $defaults = module_invoke_all('heartbeat_message_info');
  foreach ($defaults as $key => $default) {
    heartbeat_message_insert($default);
  }
}