You are here

function panels_common_allowed_layouts_form_validate in Panels 6.3

Same name and namespace in other branches
  1. 7.3 includes/common.inc \panels_common_allowed_layouts_form_validate()
1 call to panels_common_allowed_layouts_form_validate()
panels_common_settings_validate in includes/common.inc
Submit hook for panels_common_settings

File

includes/common.inc, line 408
Functions used by more than one panels client module.

Code

function panels_common_allowed_layouts_form_validate($form, &$form_state) {
  $selected = array_filter($form_state['values']['layouts']);
  if (empty($selected)) {
    form_set_error('layouts', 'You must choose at least one layout to allow.');
  }
}