function simplecontext_content_type_edit_form

'Edit' callback for the content type. This example just returns a form.

2 string references to 'simplecontext_content_type_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.
simplecontext_content_type.inc in ctools_plugin_example/plugins/content_types/simplecontext_content_type.inc
Sample ctools content type that takes advantage of context.

File

ctools_plugin_example/plugins/content_types/simplecontext_content_type.inc, line 105

Code

function simplecontext_content_type_edit_form($form, &$form_state) {
    $conf = $form_state['conf'];
    $form['config_item_1'] = array(
        '#type' => 'textfield',
        '#title' => t('Config Item 1 for simplecontext content type'),
        '#size' => 50,
        '#description' => t('The stuff for item 1.'),
        '#default_value' => !empty($conf['config_item_1']) ? $conf['config_item_1'] : '',
        '#prefix' => '<div class="clear-block no-float">',
        '#suffix' => '</div>',
    );
    return $form;
}