You are here

function hook_photoswipe_default_settings_alter in PhotoSwipe 7.2

Provides the ability to override Photoswipe default settings.

Parameters

$settings: Default Photoswipe settings.

1 invocation of hook_photoswipe_default_settings_alter()
photoswipe_get_default_settings in ./photoswipe.module
Get photoswipe default settings.

File

./photoswipe.api.php, line 14
Hooks provided by the Photoswipe module.

Code

function hook_photoswipe_default_settings_alter(&$settings) {

  // Disable sharing links.
  $settings['shareEl'] = FALSE;
}