You are here

function livechat_validate_license in LiveChat 8

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

Validates a LiveChat license.

2 calls to livechat_validate_license()
LiveChatLicenseForm::validateForm in src/Form/LiveChatLicenseForm.php
Form validation handler.
livechat_is_installed in ./livechat.module
Checks whether LiveChat is correctly set up.

File

./livechat.module, line 111
LiveChat module.

Code

function livechat_validate_license($license) {
  if (empty($license)) {
    return FALSE;
  }
  return preg_match('/^[0-9]{1,20}$/', $license);
}