/**
  * Simple plugin configuration
  * @return FormUI The configuration form
  **/
 public function configure()
 {
     /*
     		$form = new FormUI( 'test' );
      
     		$terms = Vocabulary::get('categories')->get_tree();
      
     		$options = array();
     		foreach($terms as $term) {
     			$options[$term->id] = $term->term_display;
     		}
      
     		$form->append( 'tree', 'tree', $terms, 'test');
     		//$form->append( 'tree', 'tree2', 'null:null', 'test', $options);
      
     		$form->append( 'submit', 'save', _t( 'Save' ) );
      
     		return $form;
     */
     $form = new FormUI('test');
     $form->append(new FormControlText('name', 'soup__name', 'Soup Name'));
     $form->append(new FormControlSelect('type', 'soup__type', 'Soup Type', array('stock', 'cream')));
     $form->append(new FormControlSubmit('save', _t('Save')));
     $dom = new DOMDocument('1.0');
     $dom->preserveWhiteSpace = false;
     $dom->formatOutput = true;
     $dom->loadXML($form->get_xml()->asXML());
     Utils::debug($dom->saveXML());
     return $form;
     //DB::query('delete from {terms} where id in (14,17)');
     /*
     if($_SERVER['REQUEST_METHOD'] == 'POST') {
     	Utils::debug($_POST->get_array_copy_raw());
     }
     
     echo <<< FORM
     <form method="post">
     <input type="text" name="properties[element1][type]" value="textarea">
     <input type="text" name="properties[element2][type]" value="select">
     <input type="submit" value="Submit">
     </form>
     FORM;
     */
 }