function ajax_example_advanced_commands_alert_callback

Callback for 'alert'.

See also

ajax_command_alert()

1 string reference to 'ajax_example_advanced_commands_alert_callback'
ajax_example_advanced_commands in ajax_example/ajax_example_advanced.inc
Form to display the AJAX Commands.

File

ajax_example/ajax_example_advanced.inc, line 246

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,
    );
}