You are here

function panels_common_set_allowed_layouts_validate in Panels 6.2

Same name and namespace in other branches
  1. 5.2 includes/common.inc \panels_common_set_allowed_layouts_validate()

File

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

Code

function panels_common_set_allowed_layouts_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.');
  }
}