You are here

function fblikebutton_block_info in Facebook Like Button 7.2

Same name and namespace in other branches
  1. 7 fblikebutton.module \fblikebutton_block_info()

Implementation of hook_block_info().

File

./fblikebutton.module, line 129
Adds Facebook's "Like" button to each selected node type. Adds a block with a global static value where users can "Like" the URL set by admins.

Code

function fblikebutton_block_info() {
  $fullnodedisplay = variable_get('fblikebutton_full_node_display', 0);
  $blocks['fblikebutton_static_block'] = array(
    'info' => t('Static FB Like button'),
    'cache' => DRUPAL_NO_CACHE,
  );
  if ($fullnodedisplay == 1) {
    $blocks['fblikebutton_dynamic_block'] = array(
      'info' => t('Dynamic FB Like button'),
      'cache' => DRUPAL_NO_CACHE,
    );
  }
  return $blocks;
}