summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-15 22:11:21 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-15 22:11:21 +0000
commit1fed2bf2600e75272d9cbc0090f4853459457966 (patch)
tree3e0c86ac99958d5b3fdde25dc7e9036456a054a8 /modules/system
parente394441a955f6bf1ee5b776f0aa6e13079191ed5 (diff)
downloadbrdo-1fed2bf2600e75272d9cbc0090f4853459457966.tar.gz
brdo-1fed2bf2600e75272d9cbc0090f4853459457966.tar.bz2
#713794 by Rob Loach: Fixed hook_ajax_render_alter() is undocumented.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.api.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 644f16b2a..5162b69c7 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -613,6 +613,18 @@ function hook_css_alter(&$css) {
}
/**
+ * Alter the commands that are sent to the user through the AJAX framework.
+ *
+ * @param $commands
+ * An array of all commands that will be sent to the user.
+ * @see ajax_render()
+ */
+function hook_ajax_render_alter($commands) {
+ // Inject any new status messages into the content area.
+ $commands[] = ajax_command_prepend('#block-system-main .content', theme('status_messages'));
+}
+
+/**
* Add elements to a page before it is rendered.
*
* Use this hook when you want to add elements at the page level. For your