Implements hook_block_save().

This hook declares how the configured options for a block provided by this module are saved.

Related topics

File

block_example/block_example.module, line 117
Module file for block_example.

Code

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 == 'example_configurable_text') {

    // Have Drupal save the string to the database.
    variable_set('block_example_string', $edit['block_example_string']);
  }
}