You are here

function _fb_connect_block_login_defaults in Drupal for Facebook 7.4

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.3 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 281

Code

function _fb_connect_block_login_defaults() {
  return array(
    'anon_not_connected' => array(
      'title' => t('Facebook Connect'),
      'body' => array(
        'value' => theme('fb_login_button'),
        'format' => NULL,
      ),
    ),
    'user_not_connected' => array(
      'title' => t('Facebook Connect'),
      'body' => array(
        'value' => theme('fb_login_button'),
        'format' => NULL,
      ),
    ),
    'connected' => array(
      'title' => t('Facebook Connect'),
      // This somewhat ugly markup will be replaced in fb.js with user's name and picture.
      'body' => array(
        'value' => '<div class="fb_replace"><!--- Connected as !name. &nbsp;</div><img src=//graph.facebook.com/!fbu/picture /> ---> </div>',
        'format' => NULL,
      ),
    ),
  );
}