function tft_edit_term_form_validate in Taxonomy File Tree 7
Same name and namespace in other branches
- 7.2 includes/tft.pages.inc \tft_edit_term_form_validate()
Validation callback
See also
File
- ./
tft.admin.inc, line 494
Code
function tft_edit_term_form_validate($form, &$form_state) {
// Check for forbidden characters
if (strpos($form_state['values']['name'], ',') !== FALSE || strpos($form_state['values']['name'], '+') !== FALSE) {
form_set_error('name', t("The following characters are not allowed: ',' (comma) and +"));
}
}