You are here

function tweet_feed_get_hashtags in Tweet Feed 6

Same name and namespace in other branches
  1. 7 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

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 261

Code

function tweet_feed_get_hashtags($hashtag_entities) {
  $hashtags = array();
  foreach ($hashtag_entities as $entity) {
    $hashtags[] = ' ' . $entity->text . ' ';
  }
  return join(',', $hashtags);
}