diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-06 02:41:48 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-06 02:41:48 +0000 |
commit | 482120068966928c902338630946f0ead9a17191 (patch) | |
tree | 917a4931802eb23b4dbf56b101380ebd009686ef /includes | |
parent | b3c245c08c121ec6915d58b3709d0fa9e3469f56 (diff) | |
download | brdo-482120068966928c902338630946f0ead9a17191.tar.gz brdo-482120068966928c902338630946f0ead9a17191.tar.bz2 |
#57415: Replace drupal_implode_autocomplete() by drupal_to_js()
Diffstat (limited to 'includes')
-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 |