You are here

function rules_taxonomy_form in Rules 6

Own version of taxonomy_form(), which forces the form to be not multiple.

Related topics

1 call to rules_taxonomy_form()
rules_action_taxonomy_load_term_form in rules/modules/taxonomy.rules_forms.inc
Action: Load a term configuration form.

File

rules/modules/taxonomy.rules_forms.inc, line 71
Rules configuration forms for the taxonomy module.

Code

function rules_taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
  $vocabulary = taxonomy_vocabulary_load($vid);
  $help = $help ? $help : $vocabulary->help;
  return _taxonomy_term_select(check_plain($vocabulary->name), $name, $value, $vid, $help, FALSE, t('- None selected -'));
}