block_example_block_save
- Versions
- 7
block_example_block_save($delta = '', $edit = array())
Implementation of hook_block_save().
This hook declares how the configured options for a block provided by this module are saved.
Code
developer/examples/block_example.module, line 73
<?php
function block_example_block_save($delta = '', $edit = array()) {
// We need to save settings from the configuration form.
// We need to check $delta to make sure we are saving the right block.
if ($delta == 'configurable-text') {
// Have Drupal save the string to the database.
variable_set('block_example_string', $edit['block_example_string']);
}
return;
}
?>Login or register to post comments 