function follow_block_info in Follow 6
Same name and namespace in other branches
- 7.2 follow.module \follow_block_info()
- 7 follow.module \follow_block_info()
Implementation of hook_block_info().
1 call to follow_block_info()
- follow_block in ./
follow.module - Implementation of hook_block().
File
- ./
follow.module, line 138 - 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' => BLOCK_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' => BLOCK_CACHE_PER_USER,
);
return $blocks;
}