Commit c76084c1 authored by deviantintegral's avatar deviantintegral Committed by Alan Davison
Browse files

Issue 1024770 by Alan D.: Do not call taxonomy unless needed.

parent c902a2f5
......@@ -102,12 +102,14 @@ function search_config_form_alter(&$form, &$form_state, $form_id) {
}
}
if ($taxonomy = module_invoke('taxonomy', 'form_all', 1)) {
// Taxonomy
if (variable_get('search_config_disable_category_all', 0) || !user_access('search by category')) {
if (isset($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());
if (module_exists('og_vocab')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment