You are here

function delta_layout_edit_validate in Delta 7.2

Validation handler for delta_template_edit()

This validation handler checks to ensure a theme has been selected.

_state

Parameters

$form:

File

./delta_ui.admin.inc, line 396
Delta UI functionality

Code

function delta_layout_edit_validate($form, &$form_state) {
  $values = $form_state['values'];

  //dsm($values);
  if ($values['theme'] == 'none') {
    form_set_error('theme', t('You must select a theme in order to create a theme settings template. The settings stored are based on the default theme settings of the selected theme.'));
  }
}