You are here

function mongodb_block_ui_menu_delete in MongoDB 7

Implements hook_menu_delete().

File

mongodb_block_ui/mongodb_block_ui.module, line 247
Controls the visual building mongodb_block_uis a page is constructed with.

Code

function mongodb_block_ui_menu_delete($menu) {
  $collection = mongodb_collection('block_custom');
  $collection
    ->remove([
    'module' => 'menu',
    'delta' => $menu['menu_name'],
  ], mongodb_default_write_options());
}