You are here

function heartbeattest_heartbeat_message_info in Heartbeat 6.4

Implementation of hook_heartbeat_message_info().

File

tests/heartbeattest.module, line 32
Test module to use within simpletest.

Code

function heartbeattest_heartbeat_message_info() {
  $info = array(
    /**
     * Default node messages
     */
    0 => array(
      'message' => '!username has added !node_title',
      'message_concat' => '!username has added %node_title%',
      'message_id' => 'heartbeattest_add_node',
      'concat_args' => array(
        'type' => 'summary',
        'group_by' => 'user',
        'group_target' => 'node_title',
        'merge_separator' => ', ',
        'merge_end_separator' => ' and ',
      ),
      'description' => 'When adding a node, log the users activity',
      'perms' => '1',
      'custom' => HEARTBEAT_MESSAGE_DEFAULT,
      'variables' => array(
        '@username' => '[node:author-name-url]',
        '@node_title' => '[node:title-link]',
      ),
    ),
  );
  return $info;
}