My first module - thought this was going to be easy.
There are two forms voucher and voucher_dates. Both forms work from the address bar ...
/?q=voucher
/?q=voucher_dates
but how to I get voucher to transfer to voucher dates ( see voucher_form_submit function).
Please tell me where I am going wrong, I'm desparate.
Thanks for any help.
<?php
//
// $Id: voucher.module,v 1.250.2.1 2008/02/07 16:42:03 goba Exp $
//
//
// Include voucher database funtions
//
include ("db_voucher.inc");
//
// REQUIRED - Menu
//
function voucher_menu() {
$items = array();
$items['voucher'] = array(
'title' => 'Voucher booking',
'page callback' => 'drupal_get_form',
'page arguments' => array('voucher_form'),
'type' => MENU_CALLBACK,
'access arguments' => array('administer users')
);
$items['voucher_dates'] = array(
'title' => 'Voucher dates',
'page callback' => 'voucher_dates_start',
'type' => MENU_CALLBACK,
'access arguments' => array('administer users')
);
return $items;
}
//
// REQUIRED - Set permissions
//
function voucher_perm() {
return array('access voucher content form', 'administer voucher form');
}
function voucher_dates_perm() {