You are here

function node_gallery_settings_form in Node Gallery 6.2

Same name and namespace in other branches
  1. 6.3 node_gallery.admin.inc \node_gallery_settings_form()
1 string reference to 'node_gallery_settings_form'
node_gallery_menu in ./node_gallery.module
Implementation of hook_menu().

File

./node_gallery.admin.inc, line 25
Node gallery admin page file

Code

function node_gallery_settings_form() {
  $form['node_gallery_page_number'] = array(
    '#type' => 'textfield',
    '#title' => t('Enter the Number of galleries displayed on each main gallery list page'),
    '#default_value' => variable_get('node_gallery_page_number', 20),
    '#description' => t('If this number is exceed, a pager will be displayed below the main gallery list.'),
  );
  $form['node_images_page_number'] = array(
    '#type' => 'textfield',
    '#title' => t('Enter the Number of images displayed on each gallery thumbnail page'),
    '#default_value' => variable_get('node_images_page_number', 20),
    '#description' => t('If this number is exceeded, a pager will be displayed below each corresponding gallery thumbnail page.'),
  );
  $form['node_images_page_fragment'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use Named Anchors on Image "Previous" and "Next" links?'),
    '#default_value' => variable_get('node_images_page_fragment', FALSE),
    '#description' => t('When checked, the "Previous" and "Next" links will jump to the top of the image.  You might want to leave this unchecked if you have ads at the top of your image pages.'),
  );
  return system_settings_form($form);
}