function _epsacrop_include_header_html in EPSA Crop - Image Cropping 7.2
Same name and namespace in other branches
- 8.2 epsacrop.module \_epsacrop_include_header_html()
This function include all files (JavaScript & CSS) needed by the module.
@access private
Return value
void
2 calls to _epsacrop_include_header_html()
- epsacrop_element_process in ./
epsacrop.module - Helper function that add a link in image widget field to open a dialog for the crops.
- epsacrop_form_file_entity_edit_alter in ./
epsacrop.module - Implements hook_form_file_entity_edit_alter(). Add epsacrop to file_entity edit form.
File
- ./
epsacrop.module, line 864 - The main file of module
Code
function _epsacrop_include_header_html() {
$module_path = drupal_get_path('module', 'epsacrop');
drupal_add_js(array(
'epsacrop' => array(
'path' => $module_path,
),
), 'setting');
drupal_add_library('system', 'ui.dialog');
drupal_add_js(libraries_get_path('Jcrop') . '/js/jquery.Jcrop.js');
drupal_add_js(libraries_get_path('json2') . '/json2.js', array(
'preprocess' => FALSE,
));
drupal_add_js($module_path . '/js/epsacrop.js');
drupal_add_css(libraries_get_path('Jcrop') . '/css/jquery.Jcrop.css');
drupal_add_css($module_path . '/css/epsacrop.css');
}