node_body.inc in Chaos Tool Suite (ctools) 7
File
plugins/content_types/node_context/node_body.inc
View source
<?php
$plugin = array(
'single' => TRUE,
'title' => t('Node body'),
'icon' => 'icon_node.png',
'description' => t('The body of the referenced node.'),
'required context' => new ctools_context_required(t('Node'), 'node'),
'category' => t('Node'),
'no ui' => TRUE,
);
function ctools_node_body_content_type_render($subtype, $conf, $panel_args, $context) {
$plugin = ctools_get_content_type('entity_field');
$conf['formatter'] = 'text_default';
$conf['formatter_settings'] = array();
return $plugin['render callback']('node:body', $conf, $panel_args, $context);
}
function ctools_node_body_content_type_edit_form($form, &$form_state) {
return $form;
}
function ctools_node_body_content_type_admin_title($subtype, $conf, $context) {
return t('"@s" body', array(
'@s' => $context->identifier,
));
}