ad_page_contract {

    This deletes a photo. Actually, it deletes 2 files (resized and thumbnail)

    @author Nick Kokkos (nkokkos@freemail.gr)
 
    @param item_id The item_id of the recipe to delete. Note it's defined multiple because on 
    bulk delete it contains a list of values 
} {
    item_id:integer,multiple
}

photos::delete -item_id $item_id

#ad_returnredirect "."
ad_returnredirect photos-list
# stop running this code, since we're redirecting
abort

