function zopim_requirements in Zopim Live Chat 7
Same name and namespace in other branches
- 8 zopim.install \zopim_requirements()
- 6.2 zopim.module \zopim_requirements()
- 6 zopim.module \zopim_requirements()
Implementation of hook_requirements().
Parameters
string $phase: either 'install' or 'runtime' depending on install or status report page.
Return value
array associative array of requirements
File
- ./
zopim.module, line 95
Code
function zopim_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
// Raise warning if Zopim user account has not been set yet.
if (variable_get('zopim_account', false) == false) {
$requirements['zopim'] = array(
'title' => t('Zopim module'),
'description' => t('Zopim module has not been configured yet. Please configure its settings from the <a href="@url">Zopim settings page</a>.', array(
'@url' => url('admin/settings/zopim'),
)),
'severity' => REQUIREMENT_ERROR,
'value' => t('Not configured'),
);
}
}
return $requirements;
}