function nice_imagefield_widget_library in Nice ImageField Widget 7
Same name and namespace in other branches
- 7.2 nice_imagefield_widget.module \nice_imagefield_widget_library()
Implements hook_library().
File
- ./
nice_imagefield_widget.module, line 78
Code
function nice_imagefield_widget_library() {
$module_path = drupal_get_path('module', 'nice_imagefield_widget');
$library_path = libraries_get_path('flip');
$libraries['flip'] = array(
'title' => 'jQuery Flip',
'website' => 'http://nnattawat.github.io/flip/',
'version' => '1.0',
'js' => array(
$library_path . '/dist/jquery.flip.min.js' => array(),
$module_path . '/js/nice_imagefield_widget.js' => array(),
),
'css' => array(
$module_path . '/css/nice_imagefield_widget.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
);
return $libraries;
}