function community_tags_flatten in Community Tags 6.2
Same name and namespace in other branches
- 5 community_tags.module \community_tags_flatten()
- 6 community_tags.module \community_tags_flatten()
- 7 community_tags.module \community_tags_flatten()
Helper function for the JS tagger.
4 calls to community_tags_flatten()
- community_tags_from_js in ./
community_tags.ajax.inc - Callback for the JS tagger.
- community_tags_node_view in ./
community_tags.module - Community tags callback for node view.
- community_tags_ui_tag in community_tags_ui/
community_tags_ui.module - Menu page callback for community-tags/%ctools_js/tag/%node/%vocabulary
- community_tags_views_plugin_attachment_tagform::render in community_tags_views/
views/ plugins/ community_tags_views_plugin_attachment_tagform.inc
File
- ./
community_tags.module, line 619 - Implements community tagging of nodes using a specific vocabulary for Drupal v6.x
Code
function community_tags_flatten($tags) {
$names = array();
foreach ($tags as $tag) {
$names[] = $tag->name;
}
return $names;
}