You are here

function _tableofcontents_block_save in Table of Contents 7

Same name and namespace in other branches
  1. 6.3 tableofcontents_block/tableofcontents_block.module \_tableofcontents_block_save()
1 call to _tableofcontents_block_save()
tableofcontents_block_block_save in tableofcontents_block/tableofcontents_block.module
Implements hook_block_save().

File

tableofcontents_block/tableofcontents_block.module, line 76
main file for module providing a block

Code

function _tableofcontents_block_save($edit) {
  foreach ($edit as $key => $value) {
    if (substr($key, 0, 15) == 'tableofcontents') {
      variable_set($key, $value);
    }
  }
}