1 comment.module comment_block_configure($delta = '', $settings = array())

Implements hook_block_configure().

File

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

Code

function comment_block_configure($delta = '', $settings = array()) {
  $settings += array(
    'comment_count' => 10,
  );
  $form['comment_count'] = array(
    '#type' => 'select',
    '#title' => t('Number of recent comments'),
    '#default_value' => $settings['comment_count'],
    '#options' => backdrop_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;
}