function ajax_command_restripe
7.x ajax.inc | ajax_command_restripe($selector) |
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-7.x/
modules/ simpletest/ tests/ ajax_forms_test.module - Ajax callback for 'restripe'.
File
- drupal-7.x/
includes/ ajax.inc, line 1207 - Functions for use with Drupal's Ajax framework.
Code
function ajax_command_restripe($selector) {
return array(
'command' => 'restripe',
'selector' => $selector,
);
}