diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/includes/common.inc b/includes/common.inc index 77c64ed90..0aa3a2c6e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1237,24 +1237,6 @@ function drupal_to_js($var) { } /** - * Implode a PHP array into a string that can be decoded by the autocomplete JS routines. - * - * Items are separated by double pipes. Each item consists of a key-value pair - * separated by single pipes. Entities are used to ensure pipes in the strings - * pass unharmed. - * - * The key is what is filled in in the text-box (plain-text), the value is what - * is displayed in the suggestion list (HTML). - */ -function drupal_implode_autocomplete($array) { - $output = array(); - foreach ($array as $k => $v) { - $output[] = str_replace('|', '|', $k) .'|'. str_replace('|', '|', $v); - } - return implode('||', $output); -} - -/** * Wrapper around urlencode() which avoids Apache quirks. * * Should be used when placing arbitrary data in an URL. Note that Drupal paths |