Skip navigation
Help

aggregator_block_save

7 aggregator.module aggregator_block_save($delta = '', $edit = array())

Implements hook_block_save().

File

drupal/modules/aggregator/aggregator.module, line 378
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_block_save($delta = '', $edit = array()) {
  list($type, $id) = explode('-', $delta);
  if ($type == 'category') {
    db_update('aggregator_category')
      ->fields(array('block' => $edit['block']))
      ->condition('cid', $id)
      ->execute();
  }
}