I am upgrading a personal module to 4.7 and then i have a big problem to put a drupal_set_message in a *_submit function. I simplified my module to this grr.module.
And even with this simple module, all i get when i submit is a apache crash.
My configuration :
Drupal 4.7.3
WinXP SP1
EasyPhp 1.8.0.1 : Mysql 4.1.9, PHP 4.3.10, Apache 1.3.33
It drive me crazy tonight ... Can someone test this if he got the same probleme ?
Thanks for your help.
<?php
function grr_perm(){
return array('grr');
}
function grr_menu(){
$item = array();
$item[] = array('path' => 'grr',
'title' => 'Grr',
'callback' => '_grr_mail_new',
'access' => user_access('grr'),
);
$item[] = array('path' => 'grr/hello',
'title' => 'Hello',
'callback' => '_grr_hello',
'access' => user_access('grr'),
);
return $item;
}
function _grr_hello()
{
return 'Hello';
}
function _grr_mail_new($data=NULL)
{
$critere = array('1' => 'CP seulement','2' => 'Expert seulement','3' => 'CP et Expert');
$content ='';
$form['name'] = array(
'#type' => 'textfield',
'#title' => 'Nom de la nouvelle list',
'#default_value' => $data['name'],
'#size' => 60,
'#maxlength' => 255,
'#description' => NULL,
'#attributes' => NULL,
'#required' => TRUE,