You are here

function safeword_ajax_callback in Safeword 7

Same name and namespace in other branches
  1. 8 safeword.module \safeword_ajax_callback()
1 string reference to 'safeword_ajax_callback'
safeword_menu in ./safeword.module
Implements hook_menu().

File

./safeword.module, line 569
Provides a FieldAPI field type, widget, and several formatters for a combined human readable/machine name pair of values. Possible uses include automatic generation of editable pathauto segments, handy Views argument values, and impressing friends.

Code

function safeword_ajax_callback() {

  // Retrieve our post value.
  $source = $_POST['source'];
  if (function_exists('transliteration_get')) {
    $source = transliteration_get($source, '-', 'en');
  }
  drupal_json_output($source);
}