You are here

function panelizer_choose_layout_form_validate in Panelizer 7.3

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

File

includes/common.inc, line 440
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.'));
  }
}