You are here

function socialfeed_block_view in Social Feed 7

Same name and namespace in other branches
  1. 7.2 socialfeed.module \socialfeed_block_view()

Implements hook_block_view().

File

./socialfeed.module, line 206
Provide Facebook, Twitter and Instagram.

Code

function socialfeed_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'facebook_latest_feed':
      $block['subject'] = '';
      $block['content'] = socialfeed_facebook_posts();
      break;
    case 'twitter_latest_feed':
      $block['subject'] = '';
      $block['content'] = socialfeed_twitter_posts();
      break;
    case 'instagram_latest_feed':
      $block['subject'] = '';
      $block['content'] = socialfeed_instagram_posts();
      break;
  }
  return $block;
}