php - Drupal 7 override core function taxonomy_field_validate -
due custom modifications in hierarchical_select module need able override the taxonomy_field_validate function in core taxonomy module.
i've tried creating function in custom module called mymodule_taxonomy_field_validate doesn't pick on , tried changing field settings, changes how info stored in database , needs kept taxonomy term.
any other ideas?
you need unset function on form validation.
in module, write hook_form_alter
implementation , write code inside
unset($form['#validate']['taxonomy_field_validate']);
hope works.
php drupal drupal-7 drupal-modules drupal-taxonomy
No comments:
Post a Comment