You are here

function andromeda_slideshow_remove_image in Andromeda Slideshow 7.2

Same name and namespace in other branches
  1. 7 andromeda_slideshow.module \andromeda_slideshow_remove_image()

Removes an image from a slideshow

Parameters

$slideshow: the slideshow object

$image: the image object

1 call to andromeda_slideshow_remove_image()
andromeda_slideshow_image_delete_form_submit in includes/andromeda_slideshow.forms.inc
Submit handler for andromeda_slideshow_image_delete_form

File

./andromeda_slideshow.module, line 535
Slideshow for the Andromeda (http://drupal.org/project/andromeda) Theme

Code

function andromeda_slideshow_remove_image($slideshow, $image) {
  $result = db_delete('slideshows_index')
    ->condition('sid', $slideshow->sid)
    ->condition('siid', $image->siid)
    ->execute();
  return $result;
}