You are here

function ad_block_configure in Advertisement 7

Implementation of hook_block_configure().

File

./ad.module, line 1412

Code

function ad_block_configure($delta = '') {
  $form['ad_block_quantity_' . $delta] = array(
    '#type' => 'select',
    '#title' => t('Number of ads'),
    '#default_value' => variable_get('ad_block_quantity_' . $delta, 1),
    '#options' => drupal_map_assoc(array(
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16,
      17,
      18,
      19,
      20,
      21,
      22,
      23,
      24,
      25,
    )),
    '#description' => t('Select the maximum number of unique ads that should be displayed together in this block.  If you specify a number larger than the maximum number of ads in this ad group, all ads will be displayed once.'),
  );
  return $form;
}