function ajax_command_restripe

Creates a Drupal Ajax 'restripe' command.

The 'restripe' command instructs the client to restripe a table. This is usually used after a table has been modified by a replace or append command.

This command is implemented by Drupal.ajax.prototype.commands.restripe() defined in misc/ajax.js.

Parameters

$selector: A jQuery selector string.

Return value

An array suitable for use with the ajax_render() function.

Related topics

1 call to ajax_command_restripe()
ajax_forms_test_advanced_commands_restripe_callback in drupal/modules/simpletest/tests/ajax_forms_test.module
Ajax callback for 'restripe'.

File

drupal/includes/ajax.inc, line 1266
Functions for use with Drupal's Ajax framework.

Code

function ajax_command_restripe($selector) {
  return array(
    'command' => 'restripe',
    'selector' => $selector,
  );
}