You are here

function ds_block_field_form_validate in Display Suite 7

Same name and namespace in other branches
  1. 6.3 includes/ds.fields.inc \ds_block_field_form_validate()
  2. 6 includes/ds.fields.inc \ds_block_field_form_validate()
  3. 6.2 includes/ds.fields.inc \ds_block_field_form_validate()
  4. 7.2 modules/ds_ui/includes/ds.fields.inc \ds_block_field_form_validate()

Custom field form validation.

1 string reference to 'ds_block_field_form_validate'
ds_edit_block_field_form in ./ds.fields.inc
Manage a custom block.

File

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

Code

function ds_block_field_form_validate($form, &$form_state) {
  $form_state['field']->field_type = DS_FIELD_TYPE_BLOCK;
  $form_state['field']->properties = array();
  $form_state['field']->properties['block'] = $form_state['values']['block'];
  $form_state['field']->properties['block_render'] = $form_state['values']['block_render'];
}