very simple form in block rendering incorrect values I have a very simple code in block :

if ($vocabulary = taxonomy_vocabulary_machine_name_load('caller_details')) {
  module_load_include('inc', 'taxonomy', 'taxonomy.admin');
  $output = drupal_render(drupal_get_form('taxonomy_form_term', $vocabulary));
}
echo $output;


the problem is that it sets the value of "name" in my form to taxonomy vocabulary name by default. Why is that?



Thanks for any suggestions!
That form expects an array representing the current term as edited as its first argument. The vocabulary is the second argument. Add an empty array as first argument and you should be OK.