private function GoogleCSETestCase::setupGoogleCSEAsDefaultSearch in Google Custom Search Engine 7.2
Same name and namespace in other branches
- 7.3 tests/google_cse.test \GoogleCSETestCase::setupGoogleCSEAsDefaultSearch()
Setup search variables as most Google CSE users will.
1 call to GoogleCSETestCase::setupGoogleCSEAsDefaultSearch()
- GoogleCSETestCase::testSiteSearchSettingsConfig in tests/
google_cse.test - Tests all SiteSearch configuration options.
File
- tests/
google_cse.test, line 111 - Google CSE module tests.
Class
- GoogleCSETestCase
- @file Google CSE module tests.
Code
private function setupGoogleCSEAsDefaultSearch() {
// Set variable for Drupal to use CSE as default search option.
// We will explicitly define it with the other search module options.
variable_set('search_active_modules', array(
'google_cse' => 'google_cse',
'node' => 'node',
'user' => 'user',
));
variable_set('search_default_module', 'google_cse');
}