function ctools_node_form_publishing_content_type_render
File
-
plugins/
content_types/ node_form/ node_form_publishing.inc, line 22
Code
function ctools_node_form_publishing_content_type_render($subtype, $conf, $panel_args, &$context) {
$block = new stdClass();
$block->title = t('Publishing options');
$block->module = 'node_form';
$block->delta = 'publishing-options';
if (isset($context->form)) {
if (isset($context->form['options'])) {
$block->content['options'] = $context->form['options'];
unset($block->content['options']['#pre_render']);
unset($block->content['options']['#theme_wrappers']);
$block->content['options']['#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['options']['#access'] = FALSE;
}
}
else {
$block->content = t('Publishing options.');
}
return $block;
}