public function mylivechat::validate_id in My Live Chat 6
Same name and namespace in other branches
- 7 mylivechat.php \MyLiveChat::validate_id()
License number validation
1 call to mylivechat::validate_id()
- mylivechat::is_installed in ./
mylivechat.php - Checks if MyLiveChat settings are properly set up
File
- ./
mylivechat.php, line 56 - MyLiveChat module for Drupal
Class
- mylivechat
- @file MyLiveChat module for Drupal
Code
public function validate_id($mylivechatid) {
$license = (int) $mylivechatid;
if ($license === 0) {
return false;
}
return preg_match('/^[0-9]{8}$/', $license);
}