I'm a little confused. I created a simple form with one text box and a submit button. Now I want to add a select / option popup for taxonomic terms using the taxonomy_get_vocabularies () function.
$vocabularies = taxonomy_get_vocabularies('my_type');
My question is how can I get a list of words in the form "Drupal path". The way to define Drupal seems pretty tough. Also, how can I make this condition, say, about the existence of the corresponding taxonomy terms.
function my_form_name($form_state) { // A Short question. $form['title'] = array( '#type' => 'textfield', '#title' => t('Question'), '#default_value' => $node->title, '#required' => TRUE, '#weight' => 1, '#description' => t('A text box goes here '), ); $form['submit'] = array( '#type' => 'submit', '#value' => t('submit'), '#weight' => 7, ); return $form;
forms drupal taxonomy
harry_T
source share