You are here

function follow_block_info in Follow 7

Same name and namespace in other branches
  1. 6 follow.module \follow_block_info()
  2. 7.2 follow.module \follow_block_info()

Implementation of hook_block_info().

File

./follow.module, line 144
Allows users to add links to their social network profiles.

Code

function follow_block_info() {
  $blocks['site'] = array(
    'info' => t('Follow Site'),
    // We need to cache per role so the edit/configure links display only if user
    // has access.
    'cache' => DRUPAL_CACHE_PER_ROLE,
  );
  $blocks['user'] = array(
    'info' => t('Follow User'),
    // Here we need to cache per user so the edit link only shows for the associated
    // account.
    'cache' => DRUPAL_CACHE_PER_USER,
  );
  return $blocks;
}