summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-11-07 21:46:09 +0000
committerDries Buytaert <dries@buytaert.net>2010-11-07 21:46:09 +0000
commit0d74d52c2a2dec423cd35a903df593554da90a93 (patch)
tree579f788f4fcadd4fc6edfe0a4faeecef0446ec53 /modules/comment
parentd3852cd3f5b45e0c50c2b2ee29015d5a9d04f9a2 (diff)
downloadbrdo-0d74d52c2a2dec423cd35a903df593554da90a93.tar.gz
brdo-0d74d52c2a2dec423cd35a903df593554da90a93.tar.bz2
- Patch #915936 by sun: make it easier to define checkboxes/radios with customized sub-elements.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 03c274c83..c0058f40f 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1190,28 +1190,13 @@ function comment_form_node_form_alter(&$form, $form_state) {
COMMENT_NODE_HIDDEN => t('Hidden'),
),
COMMENT_NODE_OPEN => array(
- '#type' => 'radio',
- '#title' => t('Open'),
'#description' => t('Users with the "Post comments" permission can post comments.'),
- '#return_value' => COMMENT_NODE_OPEN,
- '#default_value' => $comment_settings,
- '#parents' => array('comment'),
),
COMMENT_NODE_CLOSED => array(
- '#type' => 'radio',
- '#title' => t('Closed'),
'#description' => t('Users cannot post comments, but existing comments will be displayed.'),
- '#return_value' => COMMENT_NODE_CLOSED,
- '#default_value' => $comment_settings,
- '#parents' => array('comment'),
),
COMMENT_NODE_HIDDEN => array(
- '#type' => 'radio',
- '#title' => t('Hidden'),
'#description' => t('Comments are hidden from view.'),
- '#return_value' => COMMENT_NODE_HIDDEN,
- '#default_value' => $comment_settings,
- '#parents' => array('comment'),
),
);
// If the node doesn't have any comments, the "hidden" option makes no