Projet

Général

Profil

Paste
Télécharger (937 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / media / modules / media_wysiwyg / wysiwyg_plugins / media.inc @ 388c412d

1
<?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') . '/images',
16
    'icon file' => 'wysiwyg-media.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
        'id' => 'media_wysiwyg',
26
      ),
27
    ),
28
  );
29

    
30
  return $plugins;
31
}