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

Callback for 'restripe'.

See also

ajax_command_restripe()

File

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

Code

function ajax_example_advanced_commands_restripe_callback($form, $form_state) {
  $commands = array();
  $commands[] = ajax_command_restripe('#restripe_table');
  $commands[] = ajax_command_replace("#restripe_status", "<div id='restripe_status'>Restriped table " . date('r') . "</div>");
  return array('#type' => 'ajax', '#commands' => $commands);
}