You are here

function delta_create_theme_settings_template_validate in Delta 6

Same name and namespace in other branches
  1. 7 delta.module \delta_create_theme_settings_template_validate()
1 string reference to 'delta_create_theme_settings_template_validate'
delta_create_theme_settings_template_form in ./delta.module
Form callback for the AJAX form using Popups API

File

./delta.module, line 1020
The Delta Theme API is an advanced manipulation of the Theme Settings API to allow for customization/configuration of theme settings based on node types, context, or groups of paths.

Code

function delta_create_theme_settings_template_validate($form, &$form_state) {
  if ($form_state['clicked_button']['#id'] == 'edit-submit') {
    if (!$form_state['values']['delta_template']['name']) {
      form_set_error('name', t('You must create a valid <strong>Theme Settings Template Title</strong> for this override.'));
    }
  }
}