function similarterms_block_save in Similar By Terms 6
Same name and namespace in other branches
- 7 similarterms.module \similarterms_block_save()
Perform the "save" op for hook_block().
Parameters
$delta: String specifying which block to proocess.
$edit: Array containg the form input.
Return value
None. Values are saved as system variables.
1 call to similarterms_block_save()
- similarterms_block in ./
similarterms.module - Implementation of hook_block().
File
- ./
similarterms.module, line 172 - Similar By Terms module displays a block with similar content based on taxonomy terms.
Code
function similarterms_block_save($delta = 0, $edit = array()) {
variable_set('simterms_count_' . $delta, $edit['count']);
variable_set('simterms_sametype_' . $delta, $edit['sametype']);
variable_set('simterms_ignoreterms_' . $delta, $edit['ignoreterms']);
variable_set('similarterms_showcurrentnode_' . $delta, $edit['showcurrentnode']);
}