You are here

function skinr_ui_export_form_validate in Skinr 6.2

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

Validation handler for skinr settings export form.

File

./skinr_ui.admin.inc, line 671
Admin page callbacks for the skinr 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.'));
  }
}