You are here

public function JuiceboxGalleryDecorator::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/JuiceboxGalleryDecorator.inc, line 94
Base decorator class for a Juicebox Gallery.

Class

JuiceboxGalleryDecorator
Base decorator class for a Juicebox Gallery.

Code

public function removeOption($option_name) {
  return $this->gallery
    ->removeOption($option_name);
}