function logintoboggan_block in LoginToboggan 6
Same name and namespace in other branches
- 5 logintoboggan.module \logintoboggan_block()
Implementation of hook_block
Related topics
File
- ./
logintoboggan.module, line 610 - Logintoboggan Module
Code
function logintoboggan_block($op = 'list', $delta = 0, $edit = array()) {
global $user;
switch ($op) {
case 'list':
$blocks[0]['info'] = t('LoginToboggan logged in block');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
break;
case 'view':
$block = array();
switch ($delta) {
case 0:
if ($user->uid) {
$block['content'] = theme('lt_loggedinblock');
}
return $block;
}
break;
}
}