You are here

function imageeditor_snipshot_save_callback in Image Editor 7

1 string reference to 'imageeditor_snipshot_save_callback'
snipshot.inc in plugins/editor/snipshot/snipshot.inc
Snipshot editor for Image Editor module.

File

plugins/editor/snipshot/snipshot.inc, line 34
Snipshot editor for Image Editor module.

Code

function imageeditor_snipshot_save_callback() {
  $image = '';
  if (isset($_GET['image'])) {
    $image = rawurldecode($_GET['image']);
  }
  $js_code = 'if (parent) {';
  $js_code .= 'parent.Drupal.settings.imageeditor.save.image = "' . $image . '";';
  $js_code .= 'parent.Drupal.imageeditor.save();';
  $js_code .= 'parent.Drupal.imageeditor.overlay.hide();';
  $js_code .= '}';
  drupal_add_js($js_code, 'inline');
}