You are here

function hook_heartbeat_attachments in Heartbeat 7

Add attachments to a heartbeat message template.

2 functions implement hook_heartbeat_attachments()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

heartbeat_plugins_preprocess_heartbeat_attachments in modules/heartbeat_plugins/heartbeat_plugins.module
Preprocess function for the heartbeat activity attachments.
theme_heartbeat_attachments in modules/heartbeat_plugins/heartbeat_plugins.module
Theme function for messages attachments.

File

./heartbeat.api.php, line 129
Hooks provided by the Heartbeat API.

Code

function hook_heartbeat_attachments(HeartbeatMessageTemplate &$heartbeatMessageTemplate) {
  $form = array();
  $form['myproperty'] = array(
    '#type' => 'checkbox',
    '#title' => t('Flag i like this'),
    '#default_value' => TRUE,
  );
  return $form;
}