You are here

function heartbeat_example_heartbeat_message_info in Heartbeat 6.4

Implementation of hook_heartbeat_message_info().

File

modules/heartbeat_example/heartbeat_example.module, line 84

Code

function heartbeat_example_heartbeat_message_info() {
  $info = array(
    0 => array(
      'message' => '!user added !article.',
      'message_concat' => '%user% added !article.',
      'message_id' => 'og_add_article_content',
      'concat_args' => array(
        'type' => 'summary',
        'group_by' => 'node',
        'group_target' => 'user',
        'group_by_target' => '',
        'group_num_max' => '3',
        'merge_separator' => ',',
        'merge_end_separator' => ' and ',
        'roles' => array(
          0 => '0',
          1 => '0',
          2 => '0',
          3 => '0',
          4 => '0',
        ),
      ),
      'description' => 'Add article',
      'perms' => '1',
      'custom' => HEARTBEAT_MESSAGE_DEFAULT,
      'variables' => array(
        '@user' => '[author:user-name-url]',
        '@article' => '[node:title-link]',
      ),
    ),
  );
  return $info;
}