From 297ed741f8d32569b82ea44ea144e332f595933b Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Thu, 20 Apr 2006 07:11:37 +0000 Subject: #58221, Turn #after_build into a functions array in order to make validation of date fields possible. Patch by yched, tenrapid Also makes forms API more consistent (see #pre_render) --- 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 af8b51d1a..8a3db48b8 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1355,7 +1355,7 @@ function comment_form($edit, $title = NULL) { } if ($op == t('Preview comment')) { - $form['#after_build'] = 'comment_form_add_preview'; + $form['#after_build'] = array('comment_form_add_preview'); } if ($_REQUEST['destination']) { -- cgit v1.2.3