hook_block_save

Versions
mediamosa-21
hook_block_save($delta = '', $edit = array())

Save the configuration options.

For a detailed usage example, see block_example.module.

Parameters

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

$edit The submitted form data from the configuration form.

Related topics

Code

modules/block/block.api.php, line 109

<?php
function hook_block_save($delta = '', $edit = array()) {
  if ($delta == 'exciting') {
    variable_set('mymodule_block_items', $edit['items']);
  }
}
?>