You are here

function ctools_comment_created_content_type_edit_form in Chaos Tool Suite (ctools) 7

Returns an edit form for custom type settings.

File

plugins/content_types/comment/comment_created.inc, line 45

Code

function ctools_comment_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;
}