You are here

function _gallery_assist_pager_form in Gallery Assist 7

Pager subform.

1 call to _gallery_assist_pager_form()
gallery_assist_assignments_form in ./gallery_assist.admin.inc
Form builder; Manage GA content types specific settings.

File

./gallery_assist.admin.inc, line 609
GA module administration forms.

Code

function _gallery_assist_pager_form($settings) {
  $form = array();
  $options = array(
    '0' => t('numeric'),
    '1' => t('graphic'),
  );
  $form['pager_type'] = array(
    '#type' => 'select',
    '#title' => 'Type',
    '#options' => $options,
    '#default_value' => $settings['pager_type'],
    '#description' => '',
    '#prefix' => '<div class="ga-float-left" style="">',
  );
  $options = array(
    'default' => t('default'),
  );
  $options = gallery_assist_pager_options();
  $form['pager_theme'] = array(
    '#type' => 'select',
    '#title' => 'Theme',
    '#options' => $options,
    '#default_value' => $settings['pager_theme'],
    '#description' => '',
  );
  $options = array(
    'top' => t('top'),
    'bottom' => t('bottom'),
  );
  $form['pager_position'] = array(
    '#type' => 'select',
    '#title' => 'Position',
    '#options' => $options,
    '#default_value' => $settings['pager_position'],
    '#description' => '',
  );
  $options = array(
    'center' => t('center'),
    'left' => t('left'),
    'right' => t('right'),
  );
  $form['pager_align'] = array(
    '#type' => 'select',
    '#title' => 'Align',
    '#options' => $options,
    '#default_value' => $settings['pager_align'],
    '#description' => '',
    '#suffix' => '</div>',
  );
  $options = array(
    '0' => t('full'),
    '1' => t('short'),
  );
  $form['pager_format'] = array(
    '#type' => 'select',
    '#title' => 'Format',
    '#options' => $options,
    '#default_value' => $settings['pager_format'],
    '#description' => '',
    '#prefix' => '<div class="ga-float-left">',
  );
  $options = drupal_map_assoc(range(1, 20, 1));
  $form['pager_quantity'] = array(
    '#type' => 'select',
    '#title' => 'No. Items',
    '#options' => $options,
    '#default_value' => $settings['pager_quantity'],
    '#description' => '',
  );
  $form['pager_thm_height'] = array(
    '#type' => 'textfield',
    '#title' => 'Thumbnail height',
    '#default_value' => $settings['pager_thm_height'],
    '#size' => 8,
    '#maxlength' => 3,
    '#description' => '',
  );
  $form['pager_thm_active_height'] = array(
    '#type' => 'textfield',
    '#title' => 'Active thumbnail height',
    '#default_value' => $settings['pager_thm_active_height'],
    '#size' => 8,
    '#maxlength' => 3,
    '#description' => '',
    '#suffix' => '</div>',
  );
  return $form;
}