function follow_block_info in Follow 7.2
Same name and namespace in other branches
- 6 follow.module \follow_block_info()
- 7 follow.module \follow_block_info()
Implements hook_block_info().
File
- ./
follow.module, line 181
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;
}