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