This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Can't get form to display in module

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'),
);

hook into another forms submission?

whats the best way to do this? I need to hook into some field values when the views edit form is submitted. Thanks !

Flash Gallery -Module probelm to activate in Administrator

Hi

I am trying to install Flash Gallery module but not able to select this module, it indicate that there are some files missing. Is there any bugs with this module and fixed for it? Please see below.

Flash Gallery 5.x-1.x-dev

Provide a flash version of the image gallery using 3rd party Simpleviewer tool.
Depends on: Image (missing), Image_gallery (missing)

Mero

date or birthday field for CCK

I was wondering how I could add a date or birthday field using CCK.

broadcast email: what's a good module to use?

We're trying to decide whether Drupal can handle many of the functions of an email service provider. We expect eventually to be sending out blasts to about 5,000 recipients.

Ideally, we'd like to collect email addresses and handle subscriptions and opt-in without forcing users to use a password and log into the site. Does Drupal have an email module capable of collecting email addresses, handling opt-in and opt-out -- without requiring full user authentication through a password ? Could it automatically opt-out through an email link?

Export module, hook view needed

Which would be the 'best' way to hook into the views edit form submission? be it save, save and edit, or delete? I need to aggrigate a few form fields to this page

Thanks !

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions