function manualcrop_global_settings_form_submit in Manual Crop 7
Form submit handler; Clears the Manual Crop cache if the cache control gets disabled.
1 string reference to 'manualcrop_global_settings_form_submit'
- manualcrop_global_settings_form in ./
manualcrop.admin.inc - Form builder; Global settings configuration form.
File
- ./
manualcrop.admin.inc, line 35 - Admin functionality for the Manual Crop module.
Code
function manualcrop_global_settings_form_submit($form, &$form_state) {
if (!$form_state['values']['manualcrop_cache_control']) {
// Clear the cached image paths.
cache_clear_all('manualcrop', 'cache', TRUE);
}
}