function panels_common_set_allowed_layouts_validate in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/common.inc \panels_common_set_allowed_layouts_validate()
File
- includes/
common.inc, line 398 - Functions used by more than one panels client module.
Code
function panels_common_set_allowed_layouts_validate($form_id, $form_values, $form) {
$selected = array_filter($form_values['layouts']);
if (empty($selected)) {
form_set_error('layouts', 'You must choose at least one layout to allow.');
}
}