function google_cse_requirements in Google Custom Search Engine 6
Same name and namespace in other branches
- 5 google_cse.install \google_cse_requirements()
Implementation of hook_requirements().
File
- ./
google_cse.install, line 6
Code
function google_cse_requirements($phase) {
$t = get_t();
$requirements['google_cse_clean_url'] = array(
'description' => $t('Google CSE module requires that clean URLs be enabled.'),
'severity' => variable_get('clean_url', 0) ? REQUIREMENT_OK : REQUIREMENT_ERROR,
'title' => $t('Clean URLs'),
);
if ($phase == 'runtime') {
$requirements['google_cse_clean_url']['value'] = variable_get('clean_url', 0) ? $t('Enabled') : $t('Disabled');
}
return $requirements;
}