You are here

function img_assist_wysiwyg_plugin in Image Assist 6.2

Same name and namespace in other branches
  1. 5.2 img_assist.module \img_assist_wysiwyg_plugin()

Implementation of hook_wysiwyg_plugin().

File

./img_assist.module, line 1912
Image Assist module

Code

function img_assist_wysiwyg_plugin($editor, $version) {
  switch ($editor) {
    case 'tinymce':
      if ($version > 3) {
        return array(
          'img_assist' => array(
            'path' => drupal_get_path('module', 'img_assist') . '/drupalimage/editor_plugin.js',
            'buttons' => array(
              'img_assist' => t('Image Assist'),
            ),
            'url' => 'http://drupal.org/project/img_assist',
            'extended_valid_elements' => array(
              'img[class|src|border=0|alt|title|width|height|align|name|style]',
            ),
            'load' => TRUE,
          ),
        );
      }
      break;
  }
}