function follow_block_list in Follow 5
Implementation of hook_block_list().
File
- ./
follow.module, line 90 - Allows users to add links to their social network profiles.
Code
function follow_block_list($delta = 0, $edit = array()) {
$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;
}