Hey all, I'm having some problems displaying a form in a table... I've searched the forum but didn't find
something that could really help me out.
The code is contained within a module called top_menu.module which displays a form with a select drop down
item and a submit button (when I select a certain category in the drop down and click submit, I get redirected to
the category's page)
My form code is.. In this code I've tried using the #prefix and #suffix fields for the form items.. But I dont get
a lot of control in the way I can costumize the layout..
Can anyone give me a quick snippet of how I can do this more neatly ?? or any advice/ suggestions?? Would I need to
implement my own theme_myform($form) {...} function??
thanks in advance.. here is my code:
<?php
function top_menu_form($edit = null) {
$categories = top_menu_categories();
$form['category'] = array('#type' => 'select', '#title' => t('Our Categories'),'#required' => FALSE,
'#default_value' => '', '#options' => $categories, '#weight' => 1,
'#prefix' => '
', '#suffix' => ' |
' );
$form['submit'] = array('#type' => 'submit', '#value' => t('View Category'), '#submit' => TRUE,
'#weight' => 3, '#prefix' => '
', '#suffix' => ' |
' );