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
c902a2f5
Commit
c902a2f5
authored
Mar 24, 2012
by
omerida
Committed by
Alan Davison
Mar 24, 2012
Browse files
Issue 1024770 by Alan D.: Preventing PHP notice.
parent
d73569cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
search_config.module
search_config.module
+5
-3
No files found.
search_config.module
View file @
c902a2f5
...
...
@@ -34,9 +34,11 @@ function search_config_form_alter(&$form, &$form_state, $form_id) {
$form
[
'#submit'
]
=
array
(
'search_config_form_submit'
);
$form
[
'module'
][
'#value'
]
=
variable_get
(
'search_config_default_search'
,
'node'
);
$form
[
'module'
][
'#type'
]
=
'value'
;
$form
[
'processed_keys'
]
=
$form
[
'search_theme_form_keys'
];
$form
[
'processed_keys'
][
'#weight'
]
=
-
1
;
unset
(
$form
[
'search_theme_form_keys'
]);
if
(
isset
(
$form
[
'search_theme_form_keys'
]))
{
$form
[
'processed_keys'
]
=
$form
[
'search_theme_form_keys'
];
$form
[
'processed_keys'
][
'#weight'
]
=
-
1
;
unset
(
$form
[
'search_theme_form_keys'
]);
}
}
if
(
$form_id
==
'search_form'
&&
user_access
(
'use advanced search'
))
{
...
...
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