diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-13 06:55:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-13 06:55:50 +0000 |
commit | 5e32593f3d7c1dd7412e9f918efa3121ff9e6565 (patch) | |
tree | 25896319767e65552e98f7246c89748d9297ab20 /modules/system/system.module | |
parent | 1106db64560976f8baa1e7ebaa45fd7c4917c2e1 (diff) | |
download | brdo-5e32593f3d7c1dd7412e9f918efa3121ff9e6565.tar.gz brdo-5e32593f3d7c1dd7412e9f918efa3121ff9e6565.tar.bz2 |
- Patch #716602 by effulgentsia: refactor ajax_render() and clean up 'ajax' element type.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 6 |
1 files changed, 4 insertions, 2 deletions
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', |