function taxonomy_form_term_validate

Validation handler for the term form.

See also

taxonomy_form_term()

File

modules/taxonomy/taxonomy.admin.inc, line 787

Code

function taxonomy_form_term_validate($form, &$form_state) {
    entity_form_field_validate('taxonomy_term', $form, $form_state);
    // Ensure numeric values.
    if (isset($form_state['values']['weight']) && !is_numeric($form_state['values']['weight'])) {
        form_set_error('weight', t('Weight value must be numeric.'));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.