public function JuiceboxGallery::removeImage in Juicebox HTML5 Responsive Image Galleries 7.2
Remove an image from the gallery.
Parameters
int $id: The id of an existing image that was already added to the gallery. This id should match the index for the image as returned by getImages().
Return value
boolean Returns TRUE on successful removal and FALSE on failure.
Overrides JuiceboxGalleryInterface::removeImage
File
- includes/
JuiceboxGallery.inc, line 147 - A php-only set of methods to create the script and markup components of a Juicebox gallery.
Class
- JuiceboxGallery
- Class to generate the script and markup for a Juicebox gallery.
Code
public function removeImage($id) {
if (!empty($this->images[$id])) {
unset($this->images[$id]);
return TRUE;
}
return FALSE;
}