1 |
27945136
|
Florent Torregrosa
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Provides Media: WYSIWYG integration for CKEditor.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_ckeditor_plugin_alter().
|
10 |
|
|
*/
|
11 |
|
|
function media_ckeditor_ckeditor_plugin_alter(&$plugins) {
|
12 |
|
|
// Override the default CKEditor Media plugin.
|
13 |
|
|
$plugins['media'] = array(
|
14 |
|
|
'name' => 'media',
|
15 |
|
|
'desc' => t('Plugin for embedding files using Media CKEditor'),
|
16 |
|
|
'path' => '%base_path%' . drupal_get_path('module', 'media_ckeditor') . '/js/plugins/media/',
|
17 |
|
|
'buttons' => array(
|
18 |
|
|
'Media' => array(
|
19 |
59ae487e
|
Assos Assos
|
'icon' => 'icons/media.png',
|
20 |
27945136
|
Florent Torregrosa
|
'label' => 'Add media',
|
21 |
|
|
),
|
22 |
|
|
),
|
23 |
|
|
'default' => 'f',
|
24 |
|
|
);
|
25 |
|
|
} |