function referral_block in User Referral 5
Same name and namespace in other branches
- 6 referral.module \referral_block()
- 7 referral.module \referral_block()
File
- ./
referral.module, line 283
Code
function referral_block($op = 'list', $delta = 0) {
$title[0] = t('Top referring users');
switch ($op) {
case 'list':
$block[0]['info'] = $title[0];
return $block;
case 'view':
switch ($delta) {
case 0:
$block['subject'] = $title[0];
$block['content'] = referral_block_content();
break;
}
return $block;
}
}