function aggregator_block_save

Implements hook_block_save().

File

modules/aggregator/aggregator.module, line 381

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();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.