function flatcomments_form_node_type_form_alter in Flatcomments 7.2
Implementation of hook_form_FORMID_alter().
File
- ./
flatcomments.module, line 11 - Make comments replies to the node, regardless of the reply link used.
Code
function flatcomments_form_node_type_form_alter(&$form, &$form_state, $form_id) {
// Add note about flatcomments to comment display description.
$form['comment']['comment_default_mode']['#description'] .= t(' <strong>Flatcomments enabled:</strong> Leave this box unchecked to force replies to be to the main post instead of other comments.');
$node_type = $form['#node_type']->type;
// Add option to remove reply link from comments.
$form['comment']['flatcomments_remove_reply_link'] = array(
'#type' => 'checkboxes',
'#title' => t('Links'),
'#default_value' => variable_get('flatcomments_remove_reply_link_' . $node_type, array()),
'#options' => array(
'reply' => t('Do not show a reply link on comments'),
),
);
}