function fancy_login_block in Fancy Login 6.2
Same name and namespace in other branches
- 6 fancy_login.module \fancy_login_block()
Implementation of hook_block()
File
- ./
fancy_login.module, line 440
Code
function fancy_login_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == "list") {
$block = array();
$block[0]['info'] = t('Fancy Login Link');
return $block;
}
elseif ($op == 'view') {
if (!$delta && user_is_anonymous()) {
$block['subject'] = t('Login');
$block['content'] = l(t('Login'), 'user/login');
return $block;
}
}
}