You are here

function heartbeat_gather_messages in Heartbeat 6.2

Same name and namespace in other branches
  1. 6.3 heartbeat.module \heartbeat_gather_messages()

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

1 call to heartbeat_gather_messages()
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 316
To fully understand this, you have to be familiar with the rules module. Lots of documentation can be found on http://drupal.org/node/298480 for an introduction and tutorial, but http://drupal.org/node/298486 is a lot of handy info for developers.

Code

function heartbeat_gather_messages() {
  $info_default = module_invoke_all('heartbeat_message_info');

  // dsm($info);
  $info_cache = heartbeat_messages('all', false, false);
  $info = array_diff($info_default, $info_cache);

  //dsm($info);
  $info = heartbeat_messages_install($info);
  return $info;
}