function tweet_feed_get_hashtags in Tweet Feed 7
Same name and namespace in other branches
- 6 tweet_feed.module \tweet_feed_get_hashtags()
Get the hashtags for our hasgtag field. Surround by spaces for the purposes of exact matching in our view options.
Parameters
array $hashtag_entities: An array of hashtags to be added to the database.
Return value
string $hashtags A string of hashtags (minus the hash) to be returned for entrance to the database.
1 call to tweet_feed_get_hashtags()
- tweet_feed_process_tweets in ./
tweet_feed.module - Process tweet data from what we have retrieved from the Twitter API
File
- ./
tweet_feed.module, line 385
Code
function tweet_feed_get_hashtags($hashtag_entities) {
$hashtags = array();
foreach ($hashtag_entities as $entity) {
$hashtags[] = ' ' . $entity->text . ' ';
}
return join(',', $hashtags);
}