problem with form api

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){

Hide some part of node from not logged in users

Hello!
Is it possible to hide part of node from users not logged in? Or hide from one specific group. These "secret" parts are text and media.

Two Choices Module?

Hi :)
do you know module that does this please?

I need a field for a property website.
You enter the max price of the rent then choose
weekly or monthly payment

Max Rent: $300 "monthly" or "weekly" rent

Many Thanks for your help

Charles

Display the taxonomy term description with views contextual filters

Hi!

I have a problem with the using of views.

I have replaced my default taxonomy term page with views (and it works), but the problem is that I want to display the description of my taxonomy term at the top of the taxonomy term page, but I don't know how to proceed.

Field validation php code help!

Hello, I have the following task:
validate in a form if a certain field has already a value stored for it in the database and not submit the form if there is value - also output an error message. I suppose it could be done by a custom PHP function - any help, please!
The field that I want to check for stored value is a Node reference.

How to use clients_ms_dynamics_soap module to post my data to CRM

Hi Guys,

I am new to Drupal. I have been asked to use 'clients_ms_dynamics_soap' module. I have down loaded this module and dependencies. Installed them.

Please guide me to configure and use this module to post data from drupal site to CRM.
If any document is available for this topec, please let me know.

Thanks in advance.

Sruthi.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x