Project

General

Profile

Paste
Download (1.23 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / media / modules / media_wysiwyg / wysiwyg_plugins / media.inc @ 2b3c8cc1

1 ca0757b9 Assos Assos
<?php
2
3
/**
4
 * @file
5
 * Define the WYSIWYG browser plugin.
6
 */
7
8
/**
9
 * Implements WYSIWYG's hook_INCLUDE_plugin().
10
 */
11
function media_wysiwyg_media_plugin() {
12
  $plugins['media'] = array(
13
    'title' => variable_get('media_wysiwyg_wysiwyg_title', t('Media browser')),
14
    'vendor url' => 'http://drupal.org/project/media',
15
    'icon path' => drupal_get_path('module', 'media_wysiwyg') . '/wysiwyg_plugins/media_ckeditor/images',
16
    'icon file' => 'icon.gif',
17
    'icon title' => variable_get('media_wysiwyg_wysiwyg_icon_title', t('Add media')),
18
    // @todo: move this to the plugin directory for the wysiwyg plugin.
19
    'js path' => drupal_get_path('module', 'media_wysiwyg') . '/js',
20
    'js file' => 'wysiwyg-media.js',
21
    'css path' => drupal_get_path('module', 'media_wysiwyg') . '/css',
22
    'css file' => 'media_wysiwyg.css',
23
    'settings' => array(
24
      'global' => array(
25
        'enabledPlugins' => variable_get('media_wysiwyg_wysiwyg_browser_plugins', array()),
26
        'file_directory' => variable_get('media_wysiwyg_wysiwyg_upload_directory', ''),
27
        'types' => variable_get('media_wysiwyg_wysiwyg_allowed_types', array('audio', 'image', 'video', 'document')),
28
        'id' => 'media_wysiwyg',
29
      ),
30
    ),
31
  );
32
33
  return $plugins;
34
}