function photoswipe_admin_settings in PhotoSwipe 7.2
Same name and namespace in other branches
- 6 photoswipe.module \photoswipe_admin_settings()
- 7 photoswipe.module \photoswipe_admin_settings()
@file Administrative page callbacks for the photoswipe module.
1 string reference to 'photoswipe_admin_settings'
- photoswipe_menu in ./
photoswipe.module - Implements hook_menu().
File
- ./
photoswipe.admin.inc, line 8 - Administrative page callbacks for the photoswipe module.
Code
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);
}