You are here

function skinr_ui_export_form_validate in Skinr 7.2

Same name and namespace in other branches
  1. 6.2 skinr_ui.admin.inc \skinr_ui_export_form_validate()

Form validation handler for skinr_ui_export_form().

File

./skinr_ui.admin.inc, line 1037
Admin page callbacks for the Skinr UI module.

Code

function skinr_ui_export_form_validate(&$form, &$form_state) {
  if (!empty($form_state['values']['theme']) && preg_match('/[^a-zA-Z0-9_]/', $form_state['values']['theme'])) {
    form_error($form['theme'], t('The theme name must be alphanumeric and can contain underscores only.'));
  }
}