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