Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
search_config
Commits
c76084c1
Commit
c76084c1
authored
Mar 24, 2012
by
deviantintegral
Committed by
Alan Davison
Mar 24, 2012
Browse files
Issue 1024770 by Alan D.: Do not call taxonomy unless needed.
parent
c902a2f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
search_config.module
search_config.module
+6
-4
No files found.
search_config.module
View file @
c76084c1
...
@@ -102,12 +102,14 @@ function search_config_form_alter(&$form, &$form_state, $form_id) {
...
@@ -102,12 +102,14 @@ function search_config_form_alter(&$form, &$form_state, $form_id) {
}
}
}
}
if
(
$taxonomy
=
module_invoke
(
'taxonomy'
,
'form_all'
,
1
))
{
// Taxonomy
// Taxonomy
if
(
variable_get
(
'search_config_disable_category_all'
,
0
)
||
!
user_access
(
'search by category'
))
{
if
(
variable_get
(
'search_config_disable_category_all'
,
0
)
||
!
user_access
(
'search by
category'
))
{
if
(
isset
(
$form
[
'advanced'
][
'
category'
]
))
{
unset
(
$form
[
'advanced'
][
'category'
]);
unset
(
$form
[
'advanced'
][
'category'
]);
}
}
else
{
}
elseif
(
module_exists
(
'taxonomy'
))
{
if
(
$taxonomy
=
module_invoke
(
'taxonomy'
,
'form_all'
,
1
))
{
$terms
=
variable_get
(
'search_config_disable_category'
,
array
());
$terms
=
variable_get
(
'search_config_disable_category'
,
array
());
if
(
module_exists
(
'og_vocab'
))
{
if
(
module_exists
(
'og_vocab'
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment