You are here

function photos_edit_delete in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 inc/photos.edit.inc \photos_edit_delete()

Delete photo.

1 string reference to 'photos_edit_delete'
photos_menu in ./photos.module
Implements hook_menu().

File

inc/photos.edit.inc, line 1091
Handles uploading and editing images.

Code

function photos_edit_delete($fid) {
  if (module_exists('colorbox')) {

    // Dispaly form in modal popup.
    $confirm_delete_form = drupal_get_form('photos_edit_confirm_delete', $fid);
    print drupal_render($confirm_delete_form);
  }
  else {

    // Render full page.
    return drupal_get_form('photos_edit_confirm_delete', $fid);
  }
}