function ctools_node_created_content_type_edit_form

Returns an edit form for custom type settings.

File

plugins/content_types/node_context/node_created.inc, line 45

Code

function ctools_node_created_content_type_edit_form($form, &$form_state) {
    $conf = $form_state['conf'];
    $date_types = array();
    foreach (system_get_date_types() as $date_type => $definition) {
        $date_types[$date_type] = format_date(REQUEST_TIME, $date_type);
    }
    $form['format'] = array(
        '#title' => t('Date format'),
        '#type' => 'select',
        '#options' => $date_types,
        '#default_value' => $conf['format'],
    );
    return $form;
}