function heartbeat_event_message in Heartbeat 6.2
Fetches the translatable message for corresponding action
Parameters
string $event:
File
- ./
heartbeat.module, line 384 - 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_event_message($event) {
$result = db_query("SELECT message from {heartbeat_messages} WHERE event = '%s' LIMIT 1", $event);
$message = db_fetch_object($result);
return $message->message;
}