You are here

public function JuiceboxGalleryInterface::addOption in Juicebox HTML5 Responsive Image Galleries 7.2

Add a new Juicebox configuration option to the gallery.

Parameters

string $option_name: The option name/key to add. camelCase names keys are preferred but underscore-separated (e.g., my_setting) and dash-separated (e.g., my-seting) values are also accepted when 'process_attributes' legacy support is active (i.e. when the 'process_attributes' setting was activated when the gallery was instantiated).

string $option_value: The option value to add.

boolean $override: Whether-or-not to override any values that already exist for the passed name/key.

Return value

boolean Returns TRUE on successful addition and FALSE on failure.

2 methods override JuiceboxGalleryInterface::addOption()
JuiceboxGallery::addOption in includes/JuiceboxGallery.inc
Add a new Juicebox configuration option to the gallery.
JuiceboxGalleryDecorator::addOption in includes/JuiceboxGalleryDecorator.inc
Add a new Juicebox configuration option to the gallery.

File

includes/JuiceboxGalleryInterface.inc, line 145
Interface definition for a Juicebox gallery.

Class

JuiceboxGalleryInterface
Interface definition for a Juicebox gallery.

Code

public function addOption($option_name, $option_value, $override = TRUE);