public function mylivechat::chat_button_installed in My Live Chat 6
Same name and namespace in other branches
- 7 mylivechat.php \MyLiveChat::chat_button_installed()
Checks if LiveChat button code is installed properly
File
- ./
mylivechat.php, line 101 - MyLiveChat module for Drupal
Class
- mylivechat
- @file MyLiveChat module for Drupal
Code
public function chat_button_installed() {
if ($this
->is_installed() == FALSE) {
return FALSE;
}
$r = db_query('SELECT status FROM {blocks} WHERE module="mylivechat"');
$row = db_fetch_array($r);
if (!isset($row['status']) || $row['status'] != '1') {
return FALSE;
}
return true;
}