function scald_gallery_library in Scald: Gallery 7.2
Implements hook_library().
File
- ./
scald_gallery.module, line 26 - Scald Gallery is a Scald Atom Provider for image galleries.
Code
function scald_gallery_library() {
$path = drupal_get_path('module', 'scald_gallery');
$libraries = array(
'gallery' => array(
'title' => 'Scald Gallery',
'version' => '1.0',
'js' => array(
$path . '/scald_gallery.js' => array(),
),
'css' => array(
$path . '/scald_gallery.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
),
);
// Add gallery specific modal settings.
// The atom dialog should be as large as possible.
$libraries['gallery']['js'][] = array(
'type' => 'setting',
'data' => array(
'scald_gallery' => array(
'modalSize' => array(
'type' => 'scale',
'width' => 0.9,
'height' => 0.9,
'addWidth' => 20,
'addHeight' => 15,
),
'modalOptions' => array(
'opacity' => 0.5,
'background-color' => '#000',
),
'animation' => 'fadeIn',
'modalTheme' => 'CToolsSampleModal',
'throbber' => theme('image', array(
'path' => ctools_image_path('ajax-loader.gif', 'ctools_ajax_sample'),
'alt' => t('Loading...'),
'title' => t('Loading'),
)),
),
),
);
return $libraries;
}