You are here

function ajax_example_advanced_commands_restripe_callback in Examples for Developers 7

Callback for 'restripe'.

See also

ajax_command_restripe()

1 string reference to 'ajax_example_advanced_commands_restripe_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 395
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,
  );
}