function ctools_node_form_log_content_type_render
File
-
plugins/
content_types/ node_form/ node_form_log.inc, line 18
Code
function ctools_node_form_log_content_type_render($subtype, $conf, $panel_args, &$context) {
$block = new stdClass();
$block->module = 'node_form';
$block->title = t('Revision information');
if (isset($context->form)) {
if (isset($context->form['revision_information'])) {
$block->content['revision_information'] = $context->form['revision_information'];
unset($block->content['revision_information']['#pre_render']);
unset($block->content['revision_information']['#theme_wrappers']);
$block->content['revision_information']['#type'] = '';
// Set access to false on the original rather than removing so that
// vertical tabs doesn't clone it. I think this is due to references.
$context->form['revision_information']['#access'] = FALSE;
}
}
else {
$block->content = t('Revision information.');
}
return $block;
}