function mee_library in Scald: Media Management made easy 7
Implements hook_library().
File
- modules/
fields/ mee/ mee.module, line 44 - Defines a special textarea, with drag and drop media driven by Scald and dnd.module.
Code
function mee_library() {
$path = drupal_get_path('module', 'mee');
$libraries['library'] = array(
'title' => 'MEE Library',
'website' => 'http://drupal.org/project/scald',
'version' => '1.x',
'js' => array(
$path . '/mee.js' => array(),
array(
'type' => 'setting',
'data' => array(
'mee' => array(
'sas' => mee_store_format() == 'sas',
'editors' => array(),
),
),
),
),
'css' => array(
$path . '/css/mee.css' => array(),
),
);
// This file is included automatically if the CKEditor plugin is enabled.
// However we need to load it directly in Drupal so that strings can be
// translated.
$plugin = mee_store_format() !== 'embed_div' ? 'ckeditor' : 'dndck4';
$libraries['library']['js'][$path . '/plugins/' . $plugin . '/lang/en.js'] = array();
return $libraries;
}