I am trying to develop a simple module for taking information from a form, then emailing it to a specified address. I was able to get the module to show under the admin section and it displays the link in the menu, but when I try to access the form, the page simply says "Array'.
What am I doing wrong?
<?php
// $Id$
/**
* @file
*
* Additional notes
*
*
*
*/
function voicet1quote_menu($may_cache) {
$access = user_access('request quote');
$items[] = array(
'path' => 'products/telecommunications/requestvoicet1quote',
'title' => t('Request Voice T1 Quote'),
'callback' => voicet1quote_form,
'access' => TRUE
);
return $items;
}
function voicet1quote_form() {
$form = array();
$circuitoptions = array('t' => t('T1'), 'p' => t('PRI'), 'a' => t('Analog'), 'u' => t('Unknown'));
$form['contact'] = array(
'#type' => 'fieldset',
'#title' => t('Contact and Site Information'),
'#tree' => TRUE,
);
$form['contact']['name'] = array(
'#type' => 'textfield',
'#size' => 24,
'#title' => t('Name'),
);
$form['contact']['email'] = array(
'#type' => 'textfield',
'#size' => 128,
'#title' => t('Email Address'),
);
$form['contact']['address1'] = array(
'#type' => 'textfield',
'#size' => 128,
'#title' => t('Address 1'),
);