hook_block_save
function hook_block_save
hook_block_save($delta = '', $edit = array())
Save the configuration options from hook_block_configure().
This hook allows you to save the block-specific configuration settings defined within your hook_block_configure().
Parameters
$delta: Which block is being configured. This is a unique identifier for the block within the module, defined in hook_block_info().
$edit: The submitted form data from the configuration form.
For a detailed usage example, see block_example.module.
See also
Related topics
File
- modules/block/block.api.php, line 188
- Hooks provided by the Block module.
Code
function hook_block_save($delta = '', $edit = array()) { // This example comes from node.module. if ($delta == 'recent') { variable_set('node_recent_block_count', $edit['node_recent_block_count']); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.api.php/function/hook_block_save/7.x