function imagecrop_action_exists in Image javascript crop 5
Helper function to check if a preset exists with the imagecrop_javascript action. Needed to determine if we have to display our javascript crop link.
Return value
true or false
4 calls to imagecrop_action_exists()
- imagecrop_docrop in ./
imagecrop.module - Callback with javascript crop.
- imagecrop_form_alter in ./
imagecrop.module - Implementation of hook_form_alter(). Hook into several existing image modules/fields.
- imagecrop_settings in ./
imagecrop.module - Imagecrop settings page
- imagecrop_showcrop in ./
imagecrop.module - Show the cropped image.
File
- ./
imagecrop.module, line 174 - Provides a javascript toolbox through an imagecache action.
Code
function imagecrop_action_exists() {
$result = db_result(db_query("SELECT actionid FROM {imagecache_action} WHERE action = 'imagecrop_javascript'"));
return $result;
}