You are here

function facebook_comments_block_view in Facebook Comments Social Plugin 7

Implements hook_block_view().

File

./facebook_comments.module, line 108
Facebook Comments Social Plugin module file.

Code

function facebook_comments_block_view($delta = '') {
  $block = array();
  if ($delta == 'facebook-comments') {
    $width = variable_get('facebook_comments_block_width', 208);
    $fluid = variable_get('facebook_comments_block_width_fluid', 1);
    $amount = variable_get('facebook_comments_block_amount', 5);
    $block = array(
      'subject' => t('Facebook comments'),
      'content' => facebook_comments_display('block', $width, $amount, $fluid),
    );
  }
  return $block;
}