function node_comment_block_block_configure in Node Comment Block 7.2
Same name and namespace in other branches
- 7 node_comment_block.module \node_comment_block_block_configure()
Implements hook_block_configure.
File
- ./
node_comment_block.module, line 116 - Moves the comments for a node into a block.
Code
function node_comment_block_block_configure($delta = '') {
$form['show_form'] = array(
'#type' => 'checkbox',
'#title' => t('Show Comment Form?'),
'#default_value' => variable_get('node_comment_block_show_form_' . $delta, 1),
);
$form['show_comments'] = array(
'#type' => 'checkbox',
'#title' => t('Show Comments?'),
'#default_value' => variable_get('node_comment_block_show_comments_' . $delta, 1),
);
$form['show_anonymous'] = array(
'#type' => 'checkbox',
'#title' => t('Show login and register links to anonymous users if there are no comments'),
'#default_value' => variable_get('node_comment_block_show_anonymous_' . $delta, 0),
);
return $form;
}