You are here

function livechat_validate_license in LiveChat 7

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

Validates a LiveChat license.

2 calls to livechat_validate_license()
livechat_admin_license_form_validate in ./livechat.admin.inc
Validation callback for license installation form.
livechat_is_installed in ./livechat.module
Checks whether LiveChat is correctly set up.

File

./livechat.module, line 143
LiveChat module.

Code

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