You are here

function hook_mongodb_block_ui_save in MongoDB 7

Save the configuration options.

For a detailed usage example, see mongodb_block_ui_example.module.

Parameters

string $delta: Which mongodb_block_ui to save the settings for. This is a descriptive string used to identify mongodb_block_uis within each module and also within the theme system. The $delta for each mongodb_block_ui is defined within the array that your module returns when the hook_mongodb_block_ui_info() implementation is called.

array $edit: The submitted form data from the configuration form.

File

mongodb_block_ui/mongodb_block_ui.api.php, line 116
Hooks provided by the Block module.

Code

function hook_mongodb_block_ui_save($delta = '', array $edit = []) {
  if ($delta == 'exciting') {
    variable_set('mymodule_mongodb_block_ui_items', $edit['items']);
  }
}