You are here

function block_menu_block_delete in Menu Block 7.3

Same name and namespace in other branches
  1. 7.2 menu_block.module \block_menu_block_delete()

Implements hook_menu_block_delete() on behalf of block.module.

File

./menu_block.module, line 993
Provides configurable blocks of menu items.

Code

function block_menu_block_delete(array $config) {
  db_delete('block')
    ->condition('module', 'menu_block')
    ->condition('delta', $config['delta'])
    ->execute();
  db_delete('block_role')
    ->condition('module', 'menu_block')
    ->condition('delta', $config['delta'])
    ->execute();
}