You are here

function beautytips_init in BeautyTips 6.2

Same name and namespace in other branches
  1. 7.2 beautytips.module \beautytips_init()

Implementation of hook_init().

File

./beautytips.module, line 12
Provides API for adding beautytips to pages. TODO: Add status about excanvas on status page.

Code

function beautytips_init() {
  if (variable_get('beautytips_always_add', 0)) {
    $options = array(
      '.beautytips' => array(
        'cssSelect' => '.beautytips',
        'trigger' => 'hover',
      ),
    );
    beautytips_add_beautytips($options);
  }
}