summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-04-06 02:41:48 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-04-06 02:41:48 +0000
commit482120068966928c902338630946f0ead9a17191 (patch)
tree917a4931802eb23b4dbf56b101380ebd009686ef /includes
parentb3c245c08c121ec6915d58b3709d0fa9e3469f56 (diff)
downloadbrdo-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.inc18
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('|', '&#124;', $k) .'|'. str_replace('|', '&#124;', $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