1 |
ca0757b9
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Provides WYSIWYG integration for CKEditor.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
2b3c8cc1
|
Assos Assos
|
* Implements hook_ckeditor_plugin_alter().
|
10 |
ca0757b9
|
Assos Assos
|
*/
|
11 |
2b3c8cc1
|
Assos Assos
|
function media_wysiwyg_ckeditor_plugin_alter(&$plugins) {
|
12 |
|
|
// Override the default CKEditor Media plugin.
|
13 |
|
|
$plugins['media'] = array(
|
14 |
|
|
'name' => 'media',
|
15 |
|
|
'desc' => t('Plugin for inserting images from Drupal media module'),
|
16 |
|
|
'path' => '%base_path%' . drupal_get_path('module', 'media_wysiwyg') . '/wysiwyg_plugins/media_ckeditor/',
|
17 |
|
|
'buttons' => array(
|
18 |
|
|
'Media' => array(
|
19 |
|
|
'icon' => 'images/icon.gif',
|
20 |
|
|
'label' => 'Add media',
|
21 |
ca0757b9
|
Assos Assos
|
),
|
22 |
|
|
),
|
23 |
2b3c8cc1
|
Assos Assos
|
'default' => 'f',
|
24 |
ca0757b9
|
Assos Assos
|
);
|
25 |
|
|
} |