function panelizer_choose_layout_form_validate in Panelizer 7.2
Same name and namespace in other branches
- 7.3 includes/common.inc \panelizer_choose_layout_form_validate()
File
- includes/
common.inc, line 368 - Contains common forms and routines that different object types use.
Code
function panelizer_choose_layout_form_validate(&$form, &$form_state) {
if ($form_state['values']['layout'] == $form_state['display']->layout) {
form_error($form['layout'], t('You must select a different layout if you wish to change layouts.'));
}
}