This project is not covered by Drupal’s security advisory policy.

Simple module which provides a Libraries (2.x) interface for the qTip2 library.

Setup

Automatically (using drush+composer):

drush dl composer
drush dl libraries qtip_library
drush en qtip_library

Manually:

  • Download libraries and qtip_library; place them into your modules folder, e.g. sites/all/modules.
  • Download the qTip2 Javascript library, place it into your libraries folder, e.g. sites/all/libraries. Make sure the directory name of the extracted library is qtip.
  • Enable qTip Library.

Verify that the library has been installed correctly:

drush libraries-list
 Name  Status        Version  Variants                     Dependencies
 qtip  OK            2.0.0    source, basic, basic-source  -

Usage Example

// MYTHEME/template.php
function MYTHEME_preprocess_page() {
  $qtip = libraries_load('qtip');
  if ($qtip['loaded'] !== FALSE) {
    drupal_add_js(
      drupal_get_path('theme', 'MYTHEME') . '/javascript/qtips.js',
      array('scope' => 'footer', 'group' => JS_THEME)
    );
  }
}
// MYTHEME/javascript/qtips.js
jQuery(document).ready(function($) {
  $('[title!=""]').qtip();
});

Project information

Downloads