Revision 2b3c8cc1
Added by Assos Assos about 9 years ago
drupal7/sites/all/modules/media/modules/media_wysiwyg/wysiwyg_plugins/media.inc | ||
---|---|---|
9 | 9 |
* Implements WYSIWYG's hook_INCLUDE_plugin(). |
10 | 10 |
*/ |
11 | 11 |
function media_wysiwyg_media_plugin() { |
12 |
// Include the required browser JS. |
|
13 |
// @todo: wyswiyg should allow libraries and multiple js files |
|
14 |
// to be defined by this hook. |
|
15 |
// @see http://drupal.org/node/1039076 |
|
16 |
media_wysiwyg_include_browser_js(); |
|
17 |
|
|
18 |
// Add the filter handling. |
|
19 |
drupal_add_js(drupal_get_path('module', 'media_wysiwyg') . '/js/media_wysiwyg.filter.js'); |
|
20 |
|
|
21 |
// Plugin definition. |
|
22 | 12 |
$plugins['media'] = array( |
23 | 13 |
'title' => variable_get('media_wysiwyg_wysiwyg_title', t('Media browser')), |
24 | 14 |
'vendor url' => 'http://drupal.org/project/media', |
Also available in: Unified diff
Weekly update of contrib modules