hi, I'm a french student (sorry for my bad english), I'm a beginner on module conception and I have a problem.
I have a database with datas about trainings and I try to make a search module that allow user to find trainings whith keywords.
for the moment i made that :
<?php
function rechercheFormation_menu() {
$items = array();
$items['rechercheFormation'] = array(
'title' => t('recherche de formation'),
'page callback' => 'rechercheFormation_form',
'access arguments' => array('access content'),
'description' => t('formulaire de recherche de formation'),
'type' => MENU_CALLBACK,
);
$items['traitementForm'] = array(
'title' => t('traitement du formulaire de recherche'),
'page callback' => 'rechercheFormation_traitement',
'description' => t('traitement du formulaire de recherche de formation')
);
return $items;
}
function rechercheFormation_form() {
return drupal_get_form('rechercheFormation_composants_form');
}
function rechercheFormation_composants_form() {
$form['motCle'] = array(
'#type' => 'textfield',
'#title' => t('mot clé de votre recherche'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
return $form;
}
function rechercheFormation_composants_form_submit($form, &$form_state){