You are here

function boxes_form_validate in Boxes 7.2

Validation for box form

1 string reference to 'boxes_form_validate'
boxes_form in includes/boxes.pages.inc
Boxes form

File

includes/boxes.pages.inc, line 266
Box Functions

Code

function boxes_form_validate($form, &$form_state) {
  $box = $form_state['values']['box'];
  $box->label = $form_state['values']['label'];
  $box->title = $form_state['values']['title'];
  $box->view_mode = $form_state['values']['view_mode'];
  field_attach_form_validate('box', $box, $form, $form_state);
  $form_state['values']['box'] = $box;
  $box
    ->validate($form_state['values'], $form_state);
}