You are here

beautytips.install in BeautyTips 6

Same filename and directory in other branches
  1. 8 beautytips.install
  2. 6.2 beautytips.install
  3. 7.2 beautytips.install

beautyTips install/uninstall hooks

File

beautytips.install
View source
<?php

// $Id:

/**
 * @file
 * beautyTips install/uninstall hooks
 */

/**
 * Implementation of hook_install().
 */
function beautytips_install() {
  $path = drupal_get_path('module', 'beautytips');
  $link_readme = l('BeautyTips Readme.txt', $path . '/README.txt');
  if (!count(file_scan_directory($path . '/other_libs/excanvas_r3', 'excanvas.js', array(
    '.',
    '..',
    'CVS',
  ), 0, FALSE))) {
    drupal_set_message(t('WARNING! In order for BeautyTips to function correctly in Internet Explorer, the Excanvas library needs to be added. (See the !readme_file for more information.)', array(
      '!readme_file' => $link_readme,
    )), $type = 'warning');
  }
}

Functions

Namesort descending Description
beautytips_install Implementation of hook_install().