When the Search module is activated, it enables a default search form which cannot be moved or removed via the Blocks configuration page.

Comments

webernet’s picture

Status: Active » Closed (works as designed)

That's because it's a theme setting, and can be configured at admin/build/themes/settings.

shiva7663’s picture

Title: Default search form cannot be removed via Blocks configuration » Default search form cannot be removed via Themes global configuration if Search module deselected
Status: Closed (works as designed) » Active

Interesting. My first attempt to resolve the issue by turning off the Search module failed because the option to turn off Search in the Themes global configuration page was grayed out: I had to re-enable the Search optional module, then return to the Themes global configuration page to deselect the default Search feature, then return to Modules list to deselect the Search module.

I think turning off the whole Search module should have automatically deselected the default Search feature in Themes global configuration instead of just graying out the checkbox while leaving it selected. I've changed the title of the issue to better reflect what happened.

robertdouglass’s picture

Title: Default search form cannot be removed via Themes global configuration if Search module deselected » USABILITY BUG: Default search form cannot be removed via Themes global configuration if Search module deselected
Version: 6.0 » 7.x-dev

I agree with shiva7663. This is a usability bug.

roychri’s picture

Status: Active » Postponed (maintainer needs more info)

This seems to work fine in D7.

Here is what I did:

  1. Enabled the search module (admin/build/modules)
  2. Went into global theme configuration (admin/build/themes/settings)
  3. Enabled the slogan while keeping the search box enabled.
  4. This saved the variable theme_settings in the variable table.
  5. I then disabled the search module (admin/build/modules)
  6. I went back to the global theme configuration (admin/build/themes/settings)
  7. The "Search box" was grayed out and NOT selected (not checked).

I checked the code (includes/themes.inc) and I see that there is code to disable the theme setting for search box when the search module is disabled:

INSIDE function theme_get_settings($key = NULL) lines 889 to 894:

1.209        (dries    20-Aug-04): 
1.217        (unconed  14-Oct-04):   // Only offer search box if search.module is enabled.
1.309        (unconed  20-Aug-06):   if (!module_exists('search') || !user_access('search content')) {
1.217        (unconed  14-Oct-04):     $settings['toggle_search'] = 0;
1.217        (unconed  14-Oct-04):   }
1.217        (unconed  14-Oct-04): 

RCS file: /cvs/drupal/drupal/includes/theme.inc,v
Working file: includes/theme.inc
head: 1.430
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 465;   selected revisions: 1
description:
----------------------------
revision 1.217
date: 2004-10-13 22:38:32 -0400;  author: unconed;  state: Exp;  lines: +6 -1;
Theme system bug: only show search box if search.module is enabled.
=============================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
Working file: includes/theme.inc
head: 1.430
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 465;   selected revisions: 1
description:
----------------------------
revision 1.309
date: 2006-08-20 01:57:40 -0400;  author: unconed;  state: Exp;  lines: +4 -4;  commitid: ff844e7f9c84567;
#79601: module_exist() -> module_exists()
=============================================================================

I tried it with D6 and D5 and they all behave the same way. Disabling the search module makes the search box unselected in the theme global settings.

What am I missing?

robertdouglass’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Seems the problem doesn't exist?