function hook_ajax_render_alter
hook_ajax_render_alter(&$commands)
Alter the commands that are sent to the user through the Ajax framework.
Parameters
$commands: An array of all commands that will be sent to the user.
See also
Related topics
File
- modules/system/system.api.php, line 878
- Hooks provided by Drupal core and the System module.
Code
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')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_ajax_render_alter/7.x