function flag_heartbeat_message::get_relevant_action_objects in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 modules/flag_heartbeat/class.flag_heartbeat_message.inc \flag_heartbeat_message::get_relevant_action_objects()
- 7 modules/heartbeat_plugins/plugins/flagattachment.inc \flag_heartbeat_message::get_relevant_action_objects()
File
- modules/
flag_heartbeat/ class.flag_heartbeat_message.inc, line 71
Class
- flag_heartbeat_message
- Implements a Heartbeat message flag.
Code
function get_relevant_action_objects($content_id) {
$heartbeat_message = $this
->fetch_content($content_id);
$objects = array(
'heartbeat_message' => $heartbeat_message,
);
if ($heartbeat_message->target_nid > 0) {
$objects['node'] = node_load($heartbeat_message->target_nid);
}
return $objects;
}