public function MyLiveChat::is_installed in My Live Chat 7
Same name and namespace in other branches
- 6 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 62 - 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;
}