function accessibility_wysiwyg_wysiwyg_plugin

cis7 accessibility_wysiwyg.module accessibility_wysiwyg_wysiwyg_plugin($editor, $version)
cle7 accessibility_wysiwyg.module accessibility_wysiwyg_wysiwyg_plugin($editor, $version)
elmsmedia7 accessibility_wysiwyg.module accessibility_wysiwyg_wysiwyg_plugin($editor, $version)
icor7 accessibility_wysiwyg.module accessibility_wysiwyg_wysiwyg_plugin($editor, $version)
meedjum_blog7 accessibility_wysiwyg.module accessibility_wysiwyg_wysiwyg_plugin($editor, $version)
mooc7 accessibility_wysiwyg.module accessibility_wysiwyg_wysiwyg_plugin($editor, $version)

Implements hook_wysiwyg_plugin().

File

sites/all/modules/ulmus/accessibility/modules/accessibility_wysiwyg/accessibility_wysiwyg.module, line 38

Code

function accessibility_wysiwyg_wysiwyg_plugin($editor, $version) {
  switch ($editor) {
    case 'tinymce':
      if ($version > 3) {
        return array(
          'drupal_accessibility' => array(
            'url' => 'http://drupal.org/project/accessibility',
            'path' => drupal_get_path('module', 'accessibility_wysiwyg') . '/plugins/tinymce',
            'filename' => 'tinymce.js',
            'buttons' => array(
              'drupal_accessibility' => t('Accessibility'),
            ),
            'load' => TRUE,
            'internal' => FALSE,
          ),
        );
      }
      break;
    case 'ckeditor':
      if ($version >= 4) {
        return array(
          'drupal_accessibility' => array(
            'url' => 'http://drupal.org/project/accessibility',
            'path' => drupal_get_path('module', 'accessibility_wysiwyg') . '/plugins/ckeditor4/drupal_accessibility',
            'filename' => 'plugin.js',
            'buttons' => array(
              'drupal_accessibility' => t('Accessibility'),
            ),
            'load' => TRUE,
            'internal' => FALSE,
          ),
        );
      }
      if ($version > 3) {
        return array(
          'drupal_accessibility' => array(
            'url' => 'http://drupal.org/project/accessibility',
            'path' => drupal_get_path('module', 'accessibility_wysiwyg') . '/plugins/ckeditor3',
            'filename' => 'plugin.js',
            'buttons' => array(
              'drupal_accessibility' => t('Accessibility'),
            ),
            'load' => TRUE,
            'internal' => FALSE,
          ),
        );
      }
      break;
  }
}