You are here

function clipboardjs_help in Clipboard.js 7

Same name and namespace in other branches
  1. 8 clipboardjs.module \clipboardjs_help()
  2. 2.0.x clipboardjs.module \clipboardjs_help()

Implements hook_help().

File

./clipboardjs.module, line 10
Integrates the Clipboard.js library with Drupal.

Code

function clipboardjs_help($path, $arg) {
  switch ($path) {
    case 'admin/help#clipboardjs':
      $output = file_get_contents(drupal_get_path('module', 'clipboardjs') . '/README.md');
      return nl2br($output);
  }
  return NULL;
}