You are here

zopim.install in Zopim Live Chat 7

Same filename and directory in other branches
  1. 8 zopim.install
  2. 6.2 zopim.install
  3. 6 zopim.install

Installation file for Zopim module.

File

zopim.install
View 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

Namesort descending Description
zopim_install Implementation of hook_install().
zopim_uninstall Implementation of hook_uninstall().