You are here

function linkedin_auth_block_view in LinkedIn Integration 7

Implements hook_block_view().

File

linkedin_auth/linkedin_auth.module, line 114
Implement LinkedIn Authentication service for user login

Code

function linkedin_auth_block_view($delta = '') {

  //No check on delta, we have only one block.
  if (user_is_anonymous()) {
    $content = theme('linkedin_auth_display_login_block_button', array(
      'display' => 'linkedin_login_block',
    ));
    $block['subject'] = t('Subject');
    $block['content'] = $content;
    return $block;
  }
}