'#description'=>t('Node types that should not be index by the search module. Any node type set to not be indexed will also be removed from the search form. If you select all available node types to not be index then the search module will be rendered unusable as no nodes will be indexed.')
);
// If all node types are disabled then the search module is useless.
$description=t('Which tab on the search results will be presented by default. The standard Drupal installation defaults to node_search ("Content" tab). This option allows you to default to the "User" tab or any other tab from contributed search modules, e.g. Apachesolr which implements a tab called "Search" to display its results');
'#description'=>t('Node types that should not be index by the search module. Any node type set to not be indexed will also be removed from the search form. If you select all available node types to not be index then the search module will be rendered unusable as no nodes will be indexed.')
);
// If all node types are disabled then the search module is useless.
@@ -312,7 +285,7 @@ function search_config_validate($form, &$form_state) {
form_set_error('search_config_disable_index_type',t('You can not set all node types to be not indexed by the search module. Disable the search module if that is what you want.'));
}
if($form_types['all']){
if(!empty($form_types['all'])){
return;
}
...
...
@@ -333,17 +306,36 @@ function search_config_validate($form, &$form_state) {
/**
* Rewrite the search query to exclude selected node types.
*
* I feel dirty; This is such a hack.
* Based on the "Hiding Content from Drupal's Search System"