drupal_implode_tags
includes/common.inc, строка 3626
- Версии
- 6
drupal_implode_tags($tags)
Implode an array of tags into a string.
Код
<?php
function drupal_implode_tags($tags) {
$encoded_tags = array();
foreach ($tags as $tag) {
// Commas and quotes in tag names are special cases, so encode them.
if (strpos($tag, ',') !== FALSE || strpos($tag, '"') !== FALSE) {
$tag = '"'. str_replace('"', '""', $tag) .'"';
}
$encoded_tags[] = $tag;
}
return implode(', ', $encoded_tags);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии