You are here

function fancy_login_block_view in Fancy Login 7.2

Same name and namespace in other branches
  1. 7.3 fancy_login.module \fancy_login_block_view()

Implementation of hook_block_view()

File

./fancy_login.module, line 282

Code

function fancy_login_block_view($delta = '') {
  if ($delta == 'fancy_login_login_block') {
    if (user_is_anonymous()) {
      $block['subject'] = t('Login');
      $block['content'] = array(
        'link' => array(
          '#markup' => l(t('Login'), 'user/login'),
          '#prefix' => '<div id="fancy_login_login_link_wrapper">',
          '#suffix' => '</div>',
        ),
      );
      return $block;
    }
  }
}