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
244aa82f
Commit
244aa82f
authored
Nov 17, 2006
by
Nesta Campbell
Browse files
Applied patch from #97053
parent
19ca0233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
search_config.module
search_config.module
+16
-7
No files found.
search_config.module
View file @
244aa82f
...
...
@@ -91,13 +91,22 @@ function search_config_form_alter($form_id, &$form) {
}
// Rebuild form item -- copied from node.module
$form
[
'advanced'
][
'type'
]
=
array
(
'#type'
=>
'checkboxes'
,
'#title'
=>
t
(
'Only of the type(s)'
),
'#prefix'
=>
'<div class="criterion">'
,
'#suffix'
=>
'</div>'
,
'#options'
=>
$types
,
);
if
(
count
(
$types
)
==
1
)
{
$type_keys
=
array_keys
(
$types
);
$form
[
'advanced'
][
'type'
]
=
array
(
'#type'
=>
'hidden'
,
'#default_value'
=>
$type_keys
[
0
],
);
}
else
{
$form
[
'advanced'
][
'type'
]
=
array
(
'#type'
=>
'checkboxes'
,
'#title'
=>
t
(
'Only of the type(s)'
),
'#prefix'
=>
'<div class="criterion">'
,
'#suffix'
=>
'</div>'
,
'#options'
=>
$types
,
);
}
}
// Taxonomy
...
...
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