You are here

function imagefield_crop_clear_session in Imagefield Crop 5

1 call to imagefield_crop_clear_session()
_imagefield_crop_widget_prepare_form_values in ./imagefield_crop.module

File

./imagefield_crop.module, line 325

Code

function imagefield_crop_clear_session() {
  if (is_array($_SESSION['imagefield']) && count($_SESSION['imagefield'])) {
    foreach (array_keys($_SESSION['imagefield']) as $fieldname) {
      imagefield_crop_clear_field_session($fieldname);
    }
    unset($_SESSION['imagefield']);
  }
}