You are here

function ckeditor_link_wysiwyg_plugin in CKEditor Link 7

Same name and namespace in other branches
  1. 6.2 ckeditor_link.module \ckeditor_link_wysiwyg_plugin()
  2. 6 ckeditor_link.module \ckeditor_link_wysiwyg_plugin()
  3. 7.2 ckeditor_link.module \ckeditor_link_wysiwyg_plugin()

Implementation of hook_wysiwyg_plugin().

File

./ckeditor_link.module, line 99
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_link_wysiwyg_plugin($editor, $version) {
  if ($editor == 'ckeditor' && user_access('access ckeditor link')) {
    return array(
      'drupal_path' => array(
        'path' => drupal_get_path('module', 'ckeditor_link') . '/plugins/link/',
        'load' => TRUE,
        'extensions' => array(
          'Link' => t('CKEditor Link'),
        ),
      ),
    );
  }
}