function ctools_node_form_title_content_type_render

File

plugins/content_types/node_form/node_form_title.inc, line 18

Code

function ctools_node_form_title_content_type_render($subtype, $conf, $panel_args, &$context) {
    $block = new stdClass();
    $block->module = 'node_form';
    $block->delta = 'title-options';
    if (isset($context->form)) {
        if (!empty($context->form['title'])) {
            $block->content['title'] = $context->form['title'];
            unset($context->form['title']);
        }
    }
    else {
        $block->content = t('Node title form.');
    }
    return $block;
}