You are here

function invite_block_view in Invite 7.2

Same name and namespace in other branches
  1. 7.4 invite.module \invite_block_view()

Implements hook_block_view().

File

./invite.module, line 831
Allows your users to send and track invitations to join your site.

Code

function invite_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'invite':
      if (user_access('send invitations') && arg(0) != 'invite') {
        $block = array(
          'subject' => t('Invite a friend'),
          'content' => drupal_get_form('invite_form', 'block'),
        );
      }
      break;
  }
  return $block;
}