You are here

function footnotes_wysiwyg_ckeditor_plugin in Footnotes 7.2

Same name and namespace in other branches
  1. 6.2 footnotes_wysiwyg/footnotes_wysiwyg.module \footnotes_wysiwyg_ckeditor_plugin()
  2. 7.3 footnotes_wysiwyg/footnotes_wysiwyg.module \footnotes_wysiwyg_ckeditor_plugin()

Implements hook_ckeditor_plugin().

Register the CKEditor plugin for the CKEditor module.

File

footnotes_wysiwyg/footnotes_wysiwyg.module, line 42
WYSIWYG support for the footnotes module. Currently this supports TinyMCE and CKEditor via the WYSIWYG module and CKEditor via the CKEditor module.

Code

function footnotes_wysiwyg_ckeditor_plugin() {
  return array(
    'footnotes' => array(
      'name' => 'footnotes',
      'desc' => t('Add Footnotes'),
      'path' => drupal_get_path('module', 'footnotes_wysiwyg') . '/ckeditor_plugin/',
      'buttons' => array(
        'footnotes' => array(
          'icon' => 'images/footnotes.png',
          'label' => 'Footnotes',
        ),
      ),
    ),
  );
}