function imagecrop_load_colorbox in Image javascript crop 7
Load the colorbox plugin for current page.
2 calls to imagecrop_load_colorbox()
- imagecrop_colorbox in ./
imagecrop.module - Render the imagecrop links for colorbox.
- imagecrop_process_form_element in ./
imagecrop.module - Process function for imagecrop-enabled fields.
1 string reference to 'imagecrop_load_colorbox'
- imagecrop_process_form_element in ./
imagecrop.module - Process function for imagecrop-enabled fields.
File
- ./
imagecrop.module, line 716 - Provides a javascript toolbox through an imagecache action.
Code
function imagecrop_load_colorbox() {
// Force colorbox to load on this path.
global $conf;
$colorbox_pages = variable_get('colorbox_pages', "admin*\nimg_assist*\nimce*\nnode/add/*\nnode/*/edit");
$conf['colorbox_pages'] = 'none';
_colorbox_doheader();
drupal_add_js(drupal_get_path('module', 'colorbox') . '/js/colorbox_load.js');
$conf['colorbox_pages'] = $colorbox_pages;
return TRUE;
}