You are here

function heartbeat_messages_rebuild in Heartbeat 6.4

Function that gathers all messages from all modules New ones and existing ones

2 calls to heartbeat_messages_rebuild()
heartbeat_default_data in ./heartbeat.module
Import and store default data
heartbeat_messages_overview in ./heartbeat.admin.inc
Overview list of heartbeat messages This page must be viewed to make the messages appear in the database after a module is installed as well as make them translatable

File

./heartbeat.module, line 1227

Code

function heartbeat_messages_rebuild() {

  // Always check the default defined heartbeat messages
  $defaults = module_invoke_all('heartbeat_message_info');

  // Get the currently known heartbeat messages
  $stored = heartbeat_messages('all', TRUE, FALSE);
  $return = _heartbeat_messages_rebuild($defaults, $stored);
  return $return;
}