You are here

function clipboardjs_field_formatter_info in Clipboard.js 7

Implements hook_field_formatter_info().

File

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

Code

function clipboardjs_field_formatter_info() {
  return array(
    'text_clipboardjs' => array(
      'label' => t('Clipboard.js'),
      'description' => t('Allow users to copy to clipboard using Clipboard.js.'),
      'field types' => array(
        'text',
        'text_long',
        'text_with_summary',
      ),
      'settings' => array(
        'alert_style' => 'tooltip',
        'alert_text' => 'Copied!',
        'button_label' => 'Copy to Clipboard',
      ),
    ),
  );
}