You are here

function comment_block_configure in Drupal 7

Implements hook_block_configure().

File

modules/comment/comment.module, line 431
Enables users to comment on published content.

Code

function comment_block_configure($delta = '') {
  $form['comment_block_count'] = array(
    '#type' => 'select',
    '#title' => t('Number of recent comments'),
    '#default_value' => variable_get('comment_block_count', 10),
    '#options' => drupal_map_assoc(array(
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16,
      17,
      18,
      19,
      20,
      25,
      30,
    )),
  );
  return $form;
}