function ctools_node_form_language_content_type_render

File

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

Code

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