You are here

function persiantools_ajax_render_alter in PersianTools 7

Implements hook_ajax_render_alter().

File

./persiantools.module, line 98
Adds common features and fixes for persian pages.

Code

function persiantools_ajax_render_alter(&$commands) {
  foreach ($commands as &$item) {
    if (array_key_exists('command', $item)) {
      if ($item['command'] == "insert") {
        if (array_key_exists('data', $item)) {
          persiantools_convert_data($item['data']);
        }
      }
    }
  }
}