function image_gallery_admin_settings in Image 5
Same name and namespace in other branches
- 5.2 contrib/image_gallery/image_gallery.module \image_gallery_admin_settings()
- 6 contrib/image_gallery/image_gallery.admin.inc \image_gallery_admin_settings()
- 7 contrib/image_gallery/image_gallery.admin.inc \image_gallery_admin_settings()
1 string reference to 'image_gallery_admin_settings'
- image_gallery_menu in contrib/
image_gallery/ image_gallery.module
File
- contrib/
image_gallery/ image_gallery.module, line 70
Code
function image_gallery_admin_settings() {
_image_check_settings();
$form['gallery'] = array(
'#type' => 'fieldset',
'#title' => t('Gallery settings'),
);
$form['gallery']['image_images_per_page'] = array(
'#type' => 'textfield',
'#title' => t('Images per page'),
'#default_value' => variable_get('image_images_per_page', 6),
'#size' => 3,
'#description' => t('Sets the number of images to be displayed in a gallery page.'),
);
$form['gallery']['image_gallery_node_info'] = array(
'#type' => 'checkbox',
'#title' => t('Display node info'),
'#default_value' => variable_get('image_gallery_node_info', 0),
'#description' => t("Checking this will display the \"Posted by\" node information on the gallery pages."),
);
return system_settings_form($form);
}