function message_message_render_content_type_render in Message 7
Render callback; Show a partial message.
File
- ctools/
content_types/ message_render.inc, line 21
Code
function message_message_render_content_type_render($subtype, $conf, $args, $context) {
if (empty($context->data)) {
return FALSE;
}
$message = $context->data;
$block = new stdClass();
$block->module = 'message';
$block->title = '';
$options = array(
'field name' => $conf['field_name'],
'partials' => $conf['partials'],
'partial delta' => $conf['partials_delta'],
);
$block->content = $message
->getText(NULL, $options);
return $block;
}