function skinr_export_form_validate in Skinr 6
Validation handler for skinr settings export form.
File
- ./
skinr.admin.inc, line 79
Code
function skinr_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.'));
}
}