function _menu_block_block_save in Menu Block 5.2
Same name and namespace in other branches
- 5 menu_block.admin.inc \_menu_block_block_save()
- 6.2 menu_block.admin.inc \_menu_block_block_save()
- 7.3 menu_block.admin.inc \_menu_block_block_save()
- 7.2 menu_block.admin.inc \_menu_block_block_save()
Returns the 'save' $op info for hook_block().
1 call to _menu_block_block_save()
- menu_block_add_block_form_submit in ./
menu_block.admin.inc - Save the new menu block.
File
- ./
menu_block.admin.inc, line 218 - Provides infrequently used functions for menu_block.
Code
function _menu_block_block_save($delta, $edit) {
$menus = menu_get_root_menus();
variable_set("menu_block_{$delta}_menu_name", $edit['menu_name']);
variable_set("menu_block_{$delta}_title", $menus[$edit['menu_name']]);
variable_set("menu_block_{$delta}_level", $edit['level']);
variable_set("menu_block_{$delta}_depth", $edit['depth']);
variable_set("menu_block_{$delta}_expanded", $edit['expanded']);
}