You are here

function ds_ctools_field_form_validate in Display Suite 7

Same name and namespace in other branches
  1. 7.2 modules/ds_ui/includes/ds.fields.inc \ds_ctools_field_form_validate()

CTools field form validation.

1 string reference to 'ds_ctools_field_form_validate'
ds_edit_ctools_field_form in ./ds.fields.inc
Manage a CTools field.

File

./ds.fields.inc, line 309
Administrative functions for managing custom fields for every entity.

Code

function ds_ctools_field_form_validate($form, &$form_state) {
  $form_state['field']->field_type = DS_FIELD_TYPE_CTOOLS;
  $form_state['field']->properties['default'] = array();
  $form_state['field']->properties['settings'] = array(
    'show_title' => array(
      'type' => 'checkbox',
    ),
    'title_wrapper' => array(
      'type' => 'textfield',
      'description' => t('Eg: h1, h2, p'),
    ),
    'ctools' => array(
      'type' => 'ctools',
    ),
  );
}