function drupal_implode_tags

cis7 common.inc drupal_implode_tags($tags)
cle7 common.inc drupal_implode_tags($tags)
elmsmedia7 common.inc drupal_implode_tags($tags)
icor7 common.inc drupal_implode_tags($tags)
meedjum_blog7 common.inc drupal_implode_tags($tags)
mooc7 common.inc drupal_implode_tags($tags)

Implodes an array of tags into a string.

See also

drupal_explode_tags()

6 calls to drupal_implode_tags()
comment_unpublish_by_keyword_action_form in modules/comment/comment.module
Form builder; Prepare a form for blacklisted keywords.
masquerade_admin_settings in sites/all/modules/ulmus/masquerade/masquerade.module
Admin settings form.
masquerade_form_user_profile_form_alter in sites/all/modules/ulmus/masquerade/masquerade.module
Implements hook_form_FORM_ID_alter().
node_unpublish_by_keyword_action_form in modules/node/node.module
Generates settings form for node_unpublish_by_keyword_action().
taxonomy_autocomplete in modules/taxonomy/taxonomy.pages.inc
Page callback: Outputs JSON for taxonomy autocomplete suggestions.

... See full list

File

includes/common.inc, line 7434
Common functions that many Drupal modules will need to reference.

Code

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);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.