1 ajax_example_advanced.inc ajax_example_advanced_commands_alert_callback($form, $form_state)

Callback for 'alert'.

See also

ajax_command_alert()

File

modules/examples/ajax_example/ajax_example_advanced.inc, line 247
AJAX Commands examples.

Code

function ajax_example_advanced_commands_alert_callback($form, $form_state) {
  $commands = array();
  $commands[] = ajax_command_alert("Alert requested at " . date('r'));
  return array('#type' => 'ajax', '#commands' => $commands);
}