public function JuiceboxGallery::removeOption in Juicebox HTML5 Responsive Image Galleries 7.2
Remove an option from the gallery.
Parameters
string $option_name: The name of an existing option that was already added to the gallery. This name should match the index for the option as returned by getOptions().
Return value
boolean Returns TRUE on successful removal and FALSE on failure.
Overrides JuiceboxGalleryInterface::removeOption
File
- includes/
JuiceboxGallery.inc, line 185 - 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 removeOption($option_name) {
$option_name = strtolower($option_name);
if (!empty($this->options[$option_name])) {
unset($this->options[$option_name]);
return TRUE;
}
return FALSE;
}