You are here

function photoswipe_page_build in PhotoSwipe 7.2

Implements hook_page_build().

File

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

Code

function photoswipe_page_build(&$page) {
  if (variable_get('photoswipe_always_load_non_admin', FALSE) && !path_is_admin(current_path())) {
    photoswipe_load_assets();
  }
  if (photoswipe_assets_loaded()) {
    $page['page_bottom']['photoswipe'] = array(
      '#theme' => 'photoswipe_container',
    );
  }
}