function hashtags_get_tags in Hashtags 6.2
Same name and namespace in other branches
- 6 hashtags.module \hashtags_get_tags()
- 7.2 hashtags.module \hashtags_get_tags()
1 call to hashtags_get_tags()
- hashtags_nodeapi in ./
hashtags.module - Implementation of hook_nodeapi().
File
- ./
hashtags.module, line 66
Code
function hashtags_get_tags($text) {
$tags_list = array();
$pattern = "/#[0-9A-Za-z_]+/";
preg_match_all($pattern, $text, $tags_list);
$result = implode(',', $tags_list[0]);
return $result;
}