From 5e32593f3d7c1dd7412e9f918efa3121ff9e6565 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 13 Mar 2010 06:55:50 +0000 Subject: - Patch #716602 by effulgentsia: refactor ajax_render() and clean up 'ajax' element type. --- modules/system/system.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index 7d359303f..29a6a2b27 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -290,8 +290,10 @@ function system_element_info() { // HTML page, so we don't provide defaults for #theme or #theme_wrappers. // However, modules can set these properties (for example, to provide an HTML // debugging page that displays rather than executes AJAX commands). - $types['ajax_commands'] = array( - '#ajax_commands' => array(), + $types['ajax'] = array( + '#header' => TRUE, + '#commands' => array(), + '#error' => NULL, ); $types['html_tag'] = array( '#theme' => 'html_tag', -- cgit v1.2.3