You are here

function hook_menu_block_delete in Menu Block 7.3

Same name and namespace in other branches
  1. 7.2 menu_block.api.php \hook_menu_block_delete()

Respond to menu block deletion.

Parameters

array $config: The menu block configuration.

2 functions implement hook_menu_block_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

block_menu_block_delete in ./menu_block.module
Implements hook_menu_block_delete() on behalf of block.module.
node_menu_block_delete in ./menu_block.module
Implements hook_menu_block_delete() on behalf of node.module.
1 invocation of hook_menu_block_delete()
menu_block_delete in ./menu_block.module
Delete a menu block.

File

./menu_block.api.php, line 101
Hooks provided by the Menu Block module.

Code

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