Commit d467fe90 authored by Nesta Campbell's avatar Nesta Campbell
Browse files

Fixed node_type call.

parent 54343ef7
......@@ -68,7 +68,7 @@ function search_config_form_alter($form_id, &$form) {
unset($form['advanced']['type']);
}
else {
$types = node_get_types();
$types = node_get_types('names');
foreach ($types as $module => $type) {
if ($remove[$module]) {
......@@ -198,7 +198,7 @@ function search_config_search($op) {
}
// Node types
$types = node_get_types();
$types = node_get_types('names');
$types = array_merge(array('all' => 'Disable all'), $types);
$form['search_config']['type'] = array(
......
Supports Markdown
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