You are here

function photoswipe_assets_loaded in PhotoSwipe 7.2

Stores whether photoswipe assets has been loaded in the same request.

Parameters

bool $loaded: (Optional) Set whether assets are loaded or not.

Return value

bool

2 calls to photoswipe_assets_loaded()
photoswipe_load_assets in ./photoswipe.module
Loads photoswipe assets.
photoswipe_page_build in ./photoswipe.module
Implements hook_page_build().

File

./photoswipe.module, line 332
Photswipe integration with Drupal module.

Code

function photoswipe_assets_loaded($loaded = NULL) {
  $status =& drupal_static(__FUNCTION__);
  if ($loaded) {
    $status = $loaded;
  }
  return $status;
}