You are here

function beautytips_install in BeautyTips 7.2

Same name and namespace in other branches
  1. 8 beautytips.install \beautytips_install()
  2. 6.2 beautytips.install \beautytips_install()
  3. 6 beautytips.install \beautytips_install()

Implementation of hook_install().

File

./beautytips.install, line 11
beautyTips install/uninstall hooks

Code

function beautytips_install() {

  // Display IE warning
  $path = drupal_get_path('module', 'beautytips');
  $link_readme = l('BeautyTips Readme.txt', $path . '/README.txt');
  if (!file_exists($path . '/other_libs/excanvas_r3/excanvas.compiled.js')) {
    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.)', [
      '!readme_file' => $link_readme,
    ]), $type = 'warning');
  }

  // Set basic defaults
  variable_set('beautytips_defaults', [
    'cssStyles' => [],
  ]);
}