You are here

function referral_block in User Referral 6

Same name and namespace in other branches
  1. 5 referral.module \referral_block()
  2. 7 referral.module \referral_block()

File

./referral.module, line 273

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;
  }
}