aggregator_block_configure

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 aggregator_block_configure($delta = '')

Implements hook_block_configure().

Code

modules/aggregator/aggregator.module, line 361

<?php
function aggregator_block_configure($delta = '') {
  list($type, $id) = explode('-', $delta);
  if ($type == 'category') {
    $value = db_query('SELECT block FROM {aggregator_category} WHERE cid = :cid', array(':cid' => $id))->fetchField();
    $form['block'] = array(
      '#type' => 'select', 
      '#title' => t('Number of news items in block'), 
      '#default_value' => $value, 
      '#options' => drupal_map_assoc(range(2, 20)),
    );
    return $form;
  }
}
?>