You are here

function blockgroup_delete in Block Group 7

Same name and namespace in other branches
  1. 7.2 blockgroup.module \blockgroup_delete()

Remove the given block group form the database.

1 call to blockgroup_delete()
blockgroup_delete_confirm_submit in ./blockgroup.admin.inc
Form submission handler for blockgroup_delete_confirm().

File

./blockgroup.module, line 532
Add block groups to block configuration page

Code

function blockgroup_delete($blockgroup) {
  db_delete('block')
    ->condition('module', 'blockgroup')
    ->condition('delta', $blockgroup->delta)
    ->execute();
  db_delete('block_role')
    ->condition('module', 'blockgroup')
    ->condition('delta', $blockgroup->delta)
    ->execute();
  blockgroup_rebuild_data();
}