function relcontext_edit_form
'Edit' callback for the content type. This example just returns a form.
2 string references to 'relcontext_edit_form'
- ctools_plugin_example_default_page_manager_pages in ctools_plugin_example/
ctools_plugin_example.pages_default.inc - Default panels pages for CTools Plugin Example.
- relcontext_content_type.inc in ctools_plugin_example/
plugins/ content_types/ relcontext_content_type.inc - Content type that displays the relcontext context type.
File
-
ctools_plugin_example/
plugins/ content_types/ relcontext_content_type.inc, line 79
Code
function relcontext_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['config_item_1'] = array(
'#type' => 'textfield',
'#title' => t('Config Item 1 (relcontext)'),
'#size' => 50,
'#description' => t('Setting for relcontext.'),
'#default_value' => !empty($conf['config_item_1']) ? $conf['config_item_1'] : '',
'#prefix' => '<div class="clear-block no-float">',
'#suffix' => '</div>',
);
return $form;
}