You are here

function zopim_requirements in Zopim Live Chat 6

Same name and namespace in other branches
  1. 8 zopim.install \zopim_requirements()
  2. 6.2 zopim.module \zopim_requirements()
  3. 7 zopim.module \zopim_requirements()

Implementation of hook_requirements().

File

./zopim.module, line 52

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;
}