You are here

function tft_edit_term_form_validate in Taxonomy File Tree 7.2

Same name and namespace in other branches
  1. 7 tft.admin.inc \tft_edit_term_form_validate()

File

includes/tft.pages.inc, line 252
Defines all page callbacks for TFT.

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 +"));
  }
}