aggregator_block_configure
function aggregator_block_configure
aggregator_block_configure($delta = '')
Implements hook_block_configure().
File
- modules/aggregator/aggregator.module, line 364
- Used to aggregate syndicated content (RSS, RDF, and Atom).
Code
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; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.module/function/aggregator_block_configure/7.x