function tinybrowser_requirements in TinyBrowser 7
Implements hook_requirements().
File
- ./
tinybrowser.install, line 31 - Install, update and uninstall functions for tinybrowser module.
Code
function tinybrowser_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
$requirements['tinybrowser'] = array(
'title' => t('TinyBrowser'),
'value' => t('1.41 + Security fix'),
);
$requirements['tinybrowser']['severity'] = REQUIREMENT_OK;
if (!tinybrowser_requirements_check_cookie_domain()) {
$requirements['tinybrowser']['severity'] = REQUIREMENT_ERROR;
$requirements['tinybrowser']['description'] = t('TinyBrowser requires $cookie_domain to be set, but it is not set in your settings.php.');
}
}
return $requirements;
}