summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-27 12:54:01 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-27 12:54:01 +0000
commitf8534504b3e14dbc76d7287a2e03ab948e9be87a (patch)
treeb951390866c01801f8b94819e6c6b91cc00b2c58 /modules/comment/comment.module
parentf2f3416549391ce0102c193abcea3fdd5d1d98ef (diff)
downloadbrdo-f8534504b3e14dbc76d7287a2e03ab948e9be87a.tar.gz
brdo-f8534504b3e14dbc76d7287a2e03ab948e9be87a.tar.bz2
- Patch #80895 by webchick et al: make it easier to disable form elements.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 4bb83df6c..86af8f0b1 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -438,7 +438,7 @@ function comment_admin_settings() {
'#description' => t('This option is enabled when anonymous users have permission to post comments on the <a href="@url">permissions page</a>.', array('@url' => url('admin/user/access'))),
);
if (!user_access('post comments', user_load(array('uid' => 0)))) {
- $form['posting_settings']['comment_anonymous']['#attributes'] = array('disabled' => 'disabled');
+ $form['posting_settings']['comment_anonymous']['#disabled'] = TRUE;
}
$form['posting_settings']['comment_subject_field'] = array(