Fix for drupal_render form in block

  1.   //Load all associated vocabularies for this content type  
  2.   $vocabularies = taxonomy_get_vocabularies('my_content_type');
  3.   foreach ($vocabularies as $vocabulary) {
  4.     $formid = 'my_special_filter_' . $vocabulary->vid;
  5.     $form[$formid] = array(
  6.       '#title' => $vocabulary->name,
  7.       '#type' => $vocabulary->multiple ? 'checkboxes' : 'radios',
  8.       '#options' => array('test', 'test2'),
  9.     );
  10.   }
  11.   print drupal_render($form);

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.