From 409d57ca5a533a2927966b4d38655464c99a9e4e Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Mon, 16 Jul 2007 06:33:44 +0000
Subject: [PATCH] - Pach #154216 by asimmonds and Rok Zlender: FormAPI date
 element broken.

---
 modules/system/system.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/system/system.module b/modules/system/system.module
index a35d5480e93d..59a13ee1d3ab 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -115,7 +115,7 @@ function system_elements() {
   $type['checkbox'] = array('#input' => TRUE, '#return_value' => 1);
   $type['select'] = array('#input' => TRUE, '#size' => 0, '#multiple' => FALSE);
   $type['weight'] = array('#input' => TRUE, '#delta' => 10, '#default_value' => 0, '#process' => array('process_weight'));
-  $type['date'] = array('#input' => TRUE, '#process' => array('expand_date' => array()), '#element_validate' => array('date_validate'));
+  $type['date'] = array('#input' => TRUE, '#process' => array('expand_date'), '#element_validate' => array('date_validate'));
   $type['file'] = array('#input' => TRUE, '#size' => 60);
 
   // Form structure
-- 
GitLab