From f8534504b3e14dbc76d7287a2e03ab948e9be87a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 27 Aug 2006 12:54:01 +0000 Subject: - Patch #80895 by webchick et al: make it easier to disable form elements. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') 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 permissions page.', 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( -- cgit v1.2.3