1

I've installed the Captcha module and I need to remove it from the search button and form (just an unnecessary nuisance there). Captcha configuration allows me to turn it off for specific values of a "Form_ID". I tried that with "search", but I guess the form ID is more complicated than that. What Form_ID(s) do I need to use to get Captcha to stop showing up in search?

Thank you.

2 Answers 2

1

For a block, the form_id should be:

search_block_form

and for a page:

search_form

To easily find this information, install the Devel module:

A suite of modules containing fun for module developers and themers

and use something like this in your theme's template.php file:

function myTheme_form_alter(&$form, &$form_state, $form_id)
{
    dpm($form);

}

This will show a hierarchical display of all forms on the page - you can then scroll quickly through the info to find what you need. Very handy for searching arrays.

0
1

Simple uncheck this "Default challenge on non-listed forms." on admin/config/search/settings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.