function imagecrop_markup in Image javascript crop 6
Same name and namespace in other branches
- 5 imagecrop.module \imagecrop_markup()
Add imagecrop css & javascript
2 calls to imagecrop_markup()
- imagecrop_docrop in ./
imagecrop.admin.inc - Callback with javascript crop.
- imagecrop_showcrop in ./
imagecrop.admin.inc - Show the cropped image.
File
- ./
imagecrop.module, line 829 - Provides a javascript toolbox through an imagecache action.
Code
function imagecrop_markup($js, $css) {
$path = drupal_get_path('module', 'imagecrop');
if ($css) {
drupal_add_css($path . '/imagecrop.css');
}
if ($js) {
$path = drupal_get_path('module', 'imagecrop');
drupal_add_js($path . '/jcrop/jquery.Jcrop.js');
drupal_add_js($path . '/imagecrop_jcrop.js');
drupal_add_css($path . '/jcrop/jquery.Jcrop.css');
}
}