You are here

function _ultimenu_block_save in Ultimenu 7

Implements hook_block_save().

1 call to _ultimenu_block_save()
ultimenu_block_save in ./ultimenu.module
Implements hook_block_save().

File

includes/ultimenu.admin.inc, line 225
The setting for Ultimenu.

Code

function _ultimenu_block_save($delta = '', $edit = array()) {
  $data = array();
  $safe_delta = ultimenu_truncate_menu_property($delta);
  if (ultimenu_blocks_enabled($delta)) {
    $menu_name = str_replace(array(
      "-",
      "'",
    ), "_", $delta);
    $data[$menu_name] = $edit['orientation_' . $safe_delta] . ':' . $edit['skin_' . $safe_delta];
  }
  $new_data = array_merge(variable_get('ultimenu_settings', array()), $data);
  variable_set('ultimenu_settings', $new_data);
}