How would I go about adding html/css into this module e.g. to place the different form items into a table, so i could have a column with one field entry the next column with another entry, and then rows below with other entry fields. I noticed when i put an image into the module it appears on every page on the website too?
function form_example_menu(){
$items = array();
$items['form_example'] = array(
'title' => 'My example form',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array('access form_example'),
'page callback' => 'drupal_get_form',
'page arguments' => array ('form_example_form'),
);
return $items;
}
function form_example_form($form, &$form_state){
$form['mytextfield'] = array (
'#type' => 'textfield',
'#title' => t('My text field'),
'#size' => 60,
'#maxlength' =>128,
'#required' => TRUE,
);
$form['mytext'] = array (
'#type' => 'textarea',
'#title' => t('My text area'),
'#description' => t('enter some text.'),
'#defauly value' => '',
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Add an item'),
);
return $form;
}