function fancy_login_block_view in Fancy Login 7.3
Same name and namespace in other branches
- 7.2 fancy_login.module \fancy_login_block_view()
Implements hook_block_view().
File
- ./
fancy_login.module, line 533 - Holds hooks for the Fancy Login module.
Code
function fancy_login_block_view($delta = '') {
if ($delta == 'fancy_login_login_block') {
if (user_is_anonymous()) {
$block['subject'] = t('Login');
$block['content'] = array(
'link' => array(
'#markup' => l(variable_get('fancy_login_login_block_default_text', 'Login'), 'user/login'),
'#prefix' => '<div id="fancy_login_login_link_wrapper">',
'#suffix' => '</div>',
),
);
return $block;
}
}
}