Commit 55890c87 authored by Nesta Campbell's avatar Nesta Campbell
Browse files

Applied patch from #97053. Thanks douggreen

parent 19ca0233
......@@ -91,13 +91,21 @@ 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
......
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