4 * Plugins are described by creating a $plugin array which will be used
5 * by the system that includes this file.
9 'icon' => 'icon_node_form.png',
10 'title' => t('Node form languages'),
11 'description' => t('The language selection form.'),
12 'required context' => new ctools_context_required(t('Form'), 'node_form'),
13 'category' => t('Form'),
16 function ctools_node_form_language_content_type_render($subtype, $conf, $panel_args, &$context) {
17 $block = new stdClass();
18 $block->module = t('node_form');
20 $block->delta = 'language-options';
22 if (isset($context->form)) {
23 if (!empty($context->form['language'])) {
24 $block->content['language'] = $context->form['language'];
25 unset($context->form['language']);
29 $block->content = t('Node language form.');
34 function ctools_node_form_language_content_type_admin_title($subtype, $conf, $context) {
35 return t('"@s" node form language field', array('@s' => $context->identifier));
38 function ctools_node_form_language_content_type_edit_form($form, &$form_state) {
39 // provide a blank form so we have a place to have context setting.