You are here

photoswipe.admin.inc in PhotoSwipe 7.2

Administrative page callbacks for the photoswipe module.

File

photoswipe.admin.inc
View source
<?php

/**
 * @file
 * Administrative page callbacks for the photoswipe module.
 */
function photoswipe_admin_settings($form, &$form_state) {
  $form['photoswipe_always_load_non_admin'] = array(
    '#type' => 'checkbox',
    '#title' => t('Load PhotoSwipe on all non-admin pages'),
    '#default_value' => variable_get('photoswipe_always_load_non_admin', FALSE),
    '#description' => t('Useful if you want to use photoswipe elsewhere by just adding the <code>.photoswipe</code> CSS class.'),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
photoswipe_admin_settings @file Administrative page callbacks for the photoswipe module.