By sebastianrs on
Hi,
Is it possible to just disable the "advanced search" without messing with the search module, which btw consists of 1300 lines of code DUH. Well that's great but it certainly takes time to find the right code block in there. If there is an easier solution, I'd be thankful to get to know about it, else I will have to sift through the lines of the core search module, copy it and then modify it...
Thanks in advance
Comments
Here's a quick custom module...
...to make advanced search a permission like it is in 5.0 (untested):
A little more info, please
Hi, this is new to me... can you tell me a bit more about how to use this custom module. Is this the entire module? How do I use this code? Thanks.
Sure
1. Save the file as searchsimple.module.
2. Place the file on your website under modules/searchsimple and enable the module.
Sheesh! modules to remove features of other modules.
Or you can comment out "Advanced node search form" in node.module.
Could well mess things up left right and center.
Will let you know how it goes...
Try the "search config" module
The search config module does exactly what you want.
Install, click "disable advanced search", and that's it. :-)
this module is totally what
this module is totally what i was looking for!
it ROCKS!!
Just don't give permissions to use advanced search in permission
In drupal 6, just turn off permissions to "use advanced search"
/admin/user/permissions
In drupal 6, just turn off
"In drupal 6, just turn off permissions to "use advanced search"
/admin/user/permissions"
This works in Drupal 7 also.
Remove access to advanced search rather than unset()
I know this is an old thread, but this is what came up for me when searching for how to remove advanced search from the core search form.
Using an unset causes PHP notices, so rather than unset $form['advanced'], just remove access like so: