function antispam_block_save in AntiSpam 7
Implements hook_block_save().
File
- ./
antispam.module, line 1691 - Primary hook implementations for the Antispam module.
Code
function antispam_block_save($delta = '', $edit = array()) {
$block_fields = _antispam_get_block_fields();
if ($delta >= 0 && $delta < variable_get('antispam_blocks_counter', 1)) {
$block_settings = array();
foreach ($block_fields as $field_key => $field_info) {
$field_name = 'antispam_blocks_' . $delta . '_' . $field_key;
$block_settings[$field_key] = $edit[$field_name];
}
variable_set('antispam_blocks_' . $delta, $block_settings);
}
}