commons_search_core.strongarm.inc in Drupal Commons 7.3
File
modules/commons/commons_search/modules/commons_search_core/commons_search_core.strongarm.inc
View source
<?php
function commons_search_core_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE;
$strongarm->api_version = 1;
$strongarm->name = 'page_manager_search_disabled_search_facetapi';
$strongarm->value = FALSE;
$export['page_manager_search_disabled_search_facetapi'] = $strongarm;
return $export;
}
function commons_search_core_strongarm_alter(&$items) {
if (isset($items['search_active_modules'])) {
$items['search_active_modules']->value['search_facetapi'] = 'search_facetapi';
$items['search_active_modules']->value['user'] = 'user';
$items['search_active_modules']->value['node']['group'] = 0;
}
if (!module_exists('commons_search_solr')) {
if (isset($items['search_default_module'])) {
$items['search_default_module']->value = 'search_facetapi';
}
}
if (isset($items['custom_search_other'])) {
$items['custom_search_other']->value['search_facetapi'] = 'search_facetapi';
$items['custom_search_other']->value['user'] = 'user';
}
}