zopim.install in Zopim Live Chat 7
Same filename and directory in other branches
Installation file for Zopim module.
File
zopim.installView source
<?php
/**
* @file
* Installation file for Zopim module.
*/
/**
* Implementation of hook_install().
*/
function zopim_install() {
variable_set('zopim_visibility', 0);
// Remove tracking from all administrative pages
$pages = array(
'admin',
'admin/*',
'user/*/*',
'node/add*',
'node/*/*',
);
variable_set('zopim_pages', implode("\n", $pages));
}
/**
* Implementation of hook_uninstall().
*/
function zopim_uninstall() {
variable_del('zopim_account');
variable_del('zopim_visibility');
variable_del('zopim_pages');
variable_del('zopim_roles');
}
Functions
Name | Description |
---|---|
zopim_install | Implementation of hook_install(). |
zopim_uninstall | Implementation of hook_uninstall(). |