You are here

function heartbeat_encode_message_variables in Heartbeat 6.2

Same name and namespace in other branches
  1. 6.4 heartbeat.common.inc \heartbeat_encode_message_variables()
  2. 6.3 heartbeat.common.inc \heartbeat_encode_message_variables()
  3. 7 heartbeat.module \heartbeat_encode_message_variables()

Encode heartbeat message variables

1 call to heartbeat_encode_message_variables()
heartbeat_messages_install in ./heartbeat.module
Function to install default records

File

./heartbeat.module, line 480
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_encode_message_variables($array) {
  $string = '';
  foreach ($array as $key => $value) {
    $string .= $key . '=|=' . $value . '-|-';
  }

  //$string = serialize((object)$array);
  return $string;
}