You are here

photoswipe.api.php in PhotoSwipe 7.2

Same filename and directory in other branches
  1. 8.2 photoswipe.api.php
  2. 8 photoswipe.api.php
  3. 3.x photoswipe.api.php

Hooks provided by the Photoswipe module.

File

photoswipe.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Photoswipe module.
 */

/**
 * Provides the ability to override Photoswipe default settings.
 *
 * @param $settings
 *  Default Photoswipe settings.
 */
function hook_photoswipe_default_settings_alter(&$settings) {

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

Functions

Namesort descending Description
hook_photoswipe_default_settings_alter Provides the ability to override Photoswipe default settings.