You are here

function _fb_connect_block_login_defaults in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 5.2 fb_connect.module \_fb_connect_block_login_defaults()
  2. 6.3 fb_connect.module \_fb_connect_block_login_defaults()
  3. 6.2 fb_connect.module \_fb_connect_block_login_defaults()
  4. 7.4 fb_connect.module \_fb_connect_block_login_defaults()

Default markup for our login block.

2 calls to _fb_connect_block_login_defaults()
fb_connect_block_configure in ./fb_connect.module
Implements hook_block_configure().
fb_connect_block_view in ./fb_connect.module

File

./fb_connect.module, line 170
Support for Facebook Connect features

Code

function _fb_connect_block_login_defaults() {
  return array(
    'anon_not_connected' => array(
      'title' => t('Facebook Connect'),
      'body' => array(
        'value' => '<div class="fb-login-button" scope="!perms" data-show-faces="false"></div>',
        'format' => NULL,
      ),
    ),
    'user_not_connected' => array(
      'title' => t('Facebook Connect'),
      'body' => array(
        'value' => '<div class="fb-login-button" scope="!perms" data-show-faces="false"></div>',
        'format' => NULL,
      ),
    ),
    'connected' => array(
      'title' => t('Facebook Connect'),
      // Logout commented out, because drupal has logout link.
      'body' => array(
        'value' => '<fb:profile-pic uid=loggedinuser linked="false" facebook-logo="true"></fb:profile-pic><!--<fb:login-button autologoutlink=true></fb:login-button>-->',
        'format' => NULL,
      ),
    ),
  );
}