[support] correct way to hide 'enter your keywords' and'advanced search' from website.com/search
Metzler, David
metzlerd at evergreen.edu
Wed Apr 9 17:16:38 UTC 2008
FYI: The formdefaults module can also be used to hide fields and/or
changed titles for fields on individual forms without having to write
code.
Dave
-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Michael Prasuhn
Sent: Wednesday, April 09, 2008 10:12 AM
To: support at drupal.org
Subject: Re: [support] correct way to hide 'enter your keywords'
and'advanced search' from website.com/search
Ah, that wasn't registering with me at the time, a very nice way of
accomplishing that. I still wish there was an option to hide the form.
-Mike
On Apr 9, 2008, at 5:35 AM, VJ wrote:
> Heine suggested a small module with an override function :
>
> <?php
> function searchoverride_form_alter($form_id, &$form) {
> if ($form_id == 'search_form') {
> $form['basic']['#title'] = '';
> $form['advanced']['#type'] = 'hidden';
> $form['basic']['#type'] = 'hidden';
> }
> }
>
> ?>
>
>
> That works for what I want to do
__________________
Michael Prasuhn
mike at mikeyp.net
http://mikeyp.net
949.200.7595
714.356.0168 cell
949.200.7670 fax
--
[ Drupal support list | http://lists.drupal.org/ ]
More information about the support
mailing list