You are here

function clipboardjs_theme in Clipboard.js 8

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

Implements hook_theme().

File

./clipboardjs.module, line 28
Contains clipboardjs.module.

Code

function clipboardjs_theme($existing, $type, $theme, $path) {
  return [
    'clipboardjs' => [
      'variables' => [
        'text' => NULL,
        'alert_style' => 'tooltip',
        'alert_text' => t('Copy was successful!'),
        'height' => 13,
        'width' => 13,
      ],
    ],
  ];
}