summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-03-07 14:57:05 +0000
committerDries Buytaert <dries@buytaert.net>2006-03-07 14:57:05 +0000
commitb8d81c6a79fae474e21dcb7233705330b211c701 (patch)
tree439bb2674f2a12e5f2496c1cc023ecb6411b46ca /includes
parentbbca6b4828c9c1f038c1bcd2a83fb4659eadfd6b (diff)
downloadbrdo-b8d81c6a79fae474e21dcb7233705330b211c701.tar.gz
brdo-b8d81c6a79fae474e21dcb7233705330b211c701.tar.bz2
- Patch #52448 by Zen: simplified drupal_attributes.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 00d1ca0e5..dea608b81 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -983,11 +983,11 @@ function url($path = NULL, $query = NULL, $fragment = NULL, $absolute = FALSE) {
*/
function drupal_attributes($attributes = array()) {
if (is_array($attributes)) {
- $t = array();
+ $t = '';
foreach ($attributes as $key => $value) {
- $t[] = $key .'="'. check_plain($value) .'"';
+ $t .= " $key=".'"'. check_plain($value) .'"';
}
- return ' '. implode(' ', $t);
+ return $t;
}
}