function node_comment_block_block_save in Node Comment Block 7.2
Same name and namespace in other branches
- 7 node_comment_block.module \node_comment_block_block_save()
Implements hook_block_save.
File
- ./
node_comment_block.module, line 141 - Moves the comments for a node into a block.
Code
function node_comment_block_block_save($delta = '', $edit = array()) {
// This example comes from node.module.
if ($delta == 'node_comments' || $delta == 'node_comments_secondary') {
variable_set('node_comment_block_show_form_' . $delta, $edit['show_form']);
variable_set('node_comment_block_show_comments_' . $delta, $edit['show_comments']);
variable_set('node_comment_block_show_anonymous_' . $delta, $edit['show_anonymous']);
}
}