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/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module
Ajax form callback: Selects 'restripe'.

File

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

Code

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