Ajax framework commands

  1. drupal
    1. 8
    2. 7

Functions to create various Ajax commands.

These functions can be used to create arrays for use with the ajax_render() function.

Functions & methods

NameDescription
ajax_command_afterCreates a Drupal Ajax 'insert/after' command.
ajax_command_alertCreates a Drupal Ajax 'alert' command.
ajax_command_appendCreates a Drupal Ajax 'insert/append' command.
ajax_command_beforeCreates a Drupal Ajax 'insert/before' command.
ajax_command_changedCreates a Drupal Ajax 'changed' command.
ajax_command_cssCreates a Drupal Ajax 'css' command.
ajax_command_dataCreates a Drupal Ajax 'data' command.
ajax_command_htmlCreates a Drupal Ajax 'insert/html' command.
ajax_command_insertCreates a Drupal Ajax 'insert' command using the method in #ajax['method'].
ajax_command_invokeCreates a Drupal Ajax 'invoke' command.
ajax_command_prependCreates a Drupal Ajax 'insert/prepend' command.
ajax_command_removeCreates a Drupal Ajax 'remove' command.
ajax_command_replaceCreates a Drupal Ajax 'insert/replaceWith' command.
ajax_command_restripeCreates a Drupal Ajax 'restripe' command.
ajax_command_settingsCreates a Drupal Ajax 'settings' command.

includes/ajax.inc, line 757