Skip to content

Instantly share code, notes, and snippets.

@ezra-g
Created February 6, 2014 19:21
Show Gist options
  • Save ezra-g/8850837 to your computer and use it in GitHub Desktop.
Save ezra-g/8850837 to your computer and use it in GitHub Desktop.
drupal_set_message('Some text');
if ($ajax == 'ajax') {
$commands = array();
$commands[] = ajax_command_append('#messages', theme('status_messages'));
$page = array('#type' => 'ajax', '#commands' => $commands);
ajax_deliver($page);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment