You are here

function facebook_wall_block_view in Facebook Wall 7

Implements hook_block_view().

File

./facebook_wall.module, line 136
Get the current facebook wall posts of the given user or page.

Code

function facebook_wall_block_view($data = '') {
  $block = array();
  if ($data == 'facebook_wall_page_likes') {
    $block['subject'] = t('Facebook Page Likes');
    $block['content'] = _facebook_wall_page_likes();
  }
  elseif ($data == 'facebook_wall') {
    $api_url = facebook_wall_build_feed_url();
    $block['subject'] = t('Facebook Wall');

    // HTML Contains FB current wall post.
    $block['content'] = _facebook_wall_theme_html_content($api_url);
  }
  return $block;
}