function flag_heartbeat_heartbeat_attachments in Heartbeat 6.4
Implementation of hook_heartbeat_attachments().
Return value
unknown_type
File
- modules/
flag_heartbeat/ flag_heartbeat.module, line 29
Code
function flag_heartbeat_heartbeat_attachments($message = NULL) {
$flags = flag_get_flags('heartbeat_message');
foreach ($flags as $option) {
$options[$option->name] = $option->title;
}
return array(
'flags' => array(
'#type' => 'checkboxes',
'#default_value' => isset($message->attachments['flags']) ? drupal_map_assoc($message->attachments['flags']) : array(),
'#title' => t('Add flags to this message'),
'#options' => $options,
'#weight' => 25,
),
);
}