You are here

function active_tags_form_vocabulary_validate in Active Tags 5

File

./active_tags.module, line 41
Active Tags widget for free tagging taxonomies

Code

function active_tags_form_vocabulary_validate($form_id, &$form_values) {
  if ($form_values['active_tags'] == 1 && $form_values['tags'] != 1) {
    form_set_error('active_tags', t('Active Tags can only be used with Free Tag Vocabularies'));
  }
}