You are here

function ds_custom_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_custom_field_form_validate()

Custom field form validation.

1 string reference to 'ds_custom_field_form_validate'
ds_edit_custom_field_form in ./ds.fields.inc
Manage a custom field.

File

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

Code

function ds_custom_field_form_validate($form, &$form_state) {
  $form_state['field']->field_type = DS_FIELD_TYPE_CODE;
  $form_state['field']->properties['code'] = $form_state['values']['code'];
  $form_state['field']->properties['use_token'] = $form_state['values']['use_token'];
}