You are here

function clipboardjs_enable in Clipboard.js 7

Implements hook_enable().

File

./clipboardjs.install, line 42
Install, update and uninstall functions for the Clipboard.js module.

Code

function clipboardjs_enable() {

  // Check that library exists.
  $library = libraries_detect('clipboard');
  if (!$library['installed']) {
    drupal_set_message($library['error message'] . ' ' . t('You can use the drush command "drush cbdl" to automatically install all required libraries.'), 'error');
  }
}