[development] custom search form

Feijó patrao at legendas.feijo.info
Tue Nov 6 17:50:22 UTC 2007

promissing that article!! Thanks, I'm reading it all and will give a try :)


----- Original Message ----- 
From: "Richard Morse" <remorse at partners.org>
To: <development at drupal.org>
Sent: Tuesday, November 06, 2007 1:16 PM
Subject: Re: [development] custom search form

I don't know for sure if this is what you're looking for, but I may
have solved the problem you're looking at. Look at the module
site_user_list, which implements a form that allows you to search the
list of users, and displays the results.

Also, you might want to look at:

which describes another way to achieve the same kind of result.


On Nov 6, 2007, at 8:15 AM, Feijó wrote:

> I did read all information about *_search hooks
> I found that line "If your module needs to provide a more  complicated 
> search form, then you need to implement it yourself  without 
> hook_search(). In that case, you should define it as a  local task (tab) 
> under the /search page (e.g. /search/mymodule) so  that users can easily 
> find it." in http://api.drupal.org/api/group/ search/5
> Thats my case, I'm not working in nodes!! I'm integrating  information 
> stored in Firebird, its almost another site, old one,  and I'm updating it 
> inside drupal, to centralize all information on  my intranet.
> I simple need a Form (already built) to send the data after click  on 
> Submit, that data need to be recieved it in some place... where?  I have 
> to work with $_POST[] ? Or there it is a better drupal way?
> Here something I did:
> function mymodule_myfunc($id='') {
>  if (!$_POST['ok'])  // if I remove this if, after submit, the page  gets 
> blank!
>    $content .= drupal_get_form('mymodule_myfunc_form');
>  $content .= theme_table($header, $rows);
>  return $content;
> }
> function mymodule_myfunc_form_submit($form_id, $form_values) {
>  drupal_set_message(print_r($form_values,1));  // just to see  something
>  //return 'test';
> }
> Thanks
> baita abraço
> Feijó 

More information about the development mailing list