You are here

function clipboardjs_theme in Clipboard.js 7

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

Implements hook_theme().

File

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

Code

function clipboardjs_theme($existing, $type, $theme, $path) {
  return array(
    'clipboardjs' => array(
      'variables' => array(
        'text' => NULL,
        'alert_style' => 'tooltip',
        'alert_text' => 'Copy was successful!',
        'button_label' => 'Click to Copy',
      ),
    ),
  );
}