hook_heartbeat_message_info
<?php
/**
* Implementation of hook_heartbeat_message_info().
* This function defines default heartbeat messages. They can be written custom
* but it will be most convenient to use the heartbeat message templates export function.
*/
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' => '0',
'variables' =>
array(
'@user' => '[author:user-name-url]',
'@article' => '[node:title-link]',
),
),
);
return $info;
}
?>In heartbeat for drupal7 this hook is taken over by CTools.
- 1
- 2
- 3
- 4
- 5
- …
- next ›
- last »