public function mylivechat::is_installed in My Live Chat 6
Same name and namespace in other branches
- 7 mylivechat.php \MyLiveChat::is_installed()
Checks if MyLiveChat settings are properly set up
4 calls to mylivechat::is_installed()
- mylivechat::add_tracking_code in ./
mylivechat.php - Install tracking code
- mylivechat::chat_button_installed in ./
mylivechat.php - Checks if LiveChat button code is installed properly
- mylivechat::getChatCode in ./
mylivechat.php - Returns MyLiveChat button HTML code
- mylivechat::tracking_code_installed in ./
mylivechat.php - Checks if MyLiveChat tracking code is installed properly
File
- ./
mylivechat.php, line 67 - MyLiveChat module for Drupal
Class
- mylivechat
- @file MyLiveChat module for Drupal
Code
public function is_installed() {
$mylivechat_id = variable_get('mylivechat_id', '');
$mylivechat_displaytype = variable_get('mylivechat_displaytype', '');
$mylivechat_membership = variable_get('mylivechat_membership', '');
$mylivechat_encrymode = variable_get('mylivechat_encrymode', '');
$mylivechat_encrykey = variable_get('mylivechat_encrykey', '');
$isIntegrateUser = false;
if ($mylivechat_membership == "yes") {
$isIntegrateUser = true;
}
if (is_null($mylivechat_id)) {
return FALSE;
}
if ($this
->validate_id($mylivechat_id) == FALSE) {
return FALSE;
}
return TRUE;
}