You are here

function node_comment_block_block_save in Node Comment Block 7

Same name and namespace in other branches
  1. 7.2 node_comment_block.module \node_comment_block_block_save()

Implements hook_block_save.

File

./node_comment_block.module, line 120
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']);
  }
}