You are here

function photos_block_configure in Album Photos 7.3

Implements hook_block_configure().

File

./photos.module, line 1195
Implementation of photos.module.

Code

function photos_block_configure($delta = '') {
  switch ($delta) {
    case 'information_pager':
      $form['photos_block_num_information_pager'] = array(
        '#type' => 'radios',
        '#title' => t('Show sub-album info'),
        '#default_value' => variable_get('photos_block_num_information_pager', 1),
        '#options' => array(
          t('Disabled'),
          t('Enabled'),
        ),
      );
      break;
    default:
      $num = drupal_map_assoc(array(
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        15,
        20,
        25,
        30,
        40,
      ));
      $form['photos_block_num_' . $delta] = array(
        '#type' => 'select',
        '#title' => t('Show several images'),
        '#default_value' => variable_get('photos_block_num_' . $delta, 10),
        '#options' => $num,
      );
      break;
  }
  return $form;
}