function flag_heartbeat_message::replace_tokens in Heartbeat 6.4
Same name and namespace in other branches
- 6.3 modules/flag_heartbeat/class.flag_heartbeat_message.inc \flag_heartbeat_message::replace_tokens()
- 7 modules/heartbeat_plugins/plugins/flagattachment.inc \flag_heartbeat_message::replace_tokens()
File
- modules/
flag_heartbeat/ class.flag_heartbeat_message.inc, line 59 - Class file for a heartbeat message flag
Class
- flag_heartbeat_message
- Implements a Heartbeat message flag.
Code
function replace_tokens($label, $contexts, $content_id) {
if ($content_id) {
if ($message = $this
->fetch_content($content_id)) {
$contexts['heartbeat_message'] = $message;
}
}
return parent::replace_tokens($label, $contexts, $content_id);
}