You are here

function livechat_is_installed in LiveChat 8

Same name and namespace in other branches
  1. 8.2 livechat.module \livechat_is_installed()
  2. 7 livechat.module \livechat_is_installed()

Checks whether LiveChat is correctly set up.

Return value

mixed License number or FALSE.

1 call to livechat_is_installed()
livechat_requirements in ./livechat.install

File

./livechat.module, line 98
LiveChat module.

Code

function livechat_is_installed() {
  $configs = livechat_configs();
  $license = $configs
    ->get('livechat_license');
  if (empty($license)) {
    return FALSE;
  }
  return livechat_validate_license($license);
}