function media_browser_plus_library in Media Browser Plus 7
Same name and namespace in other branches
- 7.3 media_browser_plus.module \media_browser_plus_library()
- 7.2 media_browser_plus.module \media_browser_plus_library()
Implements hook_library().
File
- ./
media_browser_plus.module, line 948 - Adds fields to the media browser forms for better UX
Code
function media_browser_plus_library() {
$library_path = variable_get('media_browser_plus_library_path', 'sites/all/libraries');
$stylesheet = variable_get('media_browser_plus_stylesheet', 'example1');
$libraries['colorbox'] = array(
'title' => 'Colorbox',
'website' => 'http://colorpowered.com/colorbox/',
'version' => '1.3.9',
'js' => array(
$library_path . '/colorbox/jquery.colorbox-min.js' => array(),
),
'css' => array(
$library_path . '/colorbox/' . $stylesheet . '/colorbox.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
);
$path = drupal_get_path('module', 'media_browser_plus');
$libraries['media_browser_plus'] = array(
'title' => 'Media Browser Plus',
'version' => '1',
'js' => array(
$path . '/js/media_browser_plus.admin.menu.js' => array(),
),
'css' => array(
$path . '/css/media_browser_plus.admin.css' => array(
'type' => 'file',
'media' => 'screen',
),
$path . '/css/colorbox.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
);
return $libraries;
}