You are here

function plus1_block_configure in Plus 1 6.2

Function for plus1_block(op = 'configure').

1 call to plus1_block_configure()
plus1_block in ./plus1.module
Implements hook_block();

File

./plus1.module, line 592
A simple +1 voting widget module.

Code

function plus1_block_configure($delta = 0) {
  $form = array();
  switch ($delta) {
    case 'most_votes':
      $form['items'] = array(
        '#type' => 'radios',
        '#title' => t('Number of items to show'),
        '#default_value' => variable_get('plus1_most_votes_block_items', 5),
        '#options' => drupal_map_assoc(array(
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          15,
          20,
          25,
          30,
          40,
          50,
        )),
        '#attributes' => array(
          'class' => 'container-inline',
        ),
      );
      break;
  }
  return $form;
}