You are here

function _fb_connect_block_login_defaults in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 6.3 fb_connect.module \_fb_connect_block_login_defaults()
  2. 6.2 fb_connect.module \_fb_connect_block_login_defaults()
  3. 7.4 fb_connect.module \_fb_connect_block_login_defaults()
  4. 7.3 fb_connect.module \_fb_connect_block_login_defaults()
1 call to _fb_connect_block_login_defaults()
fb_connect_block in ./fb_connect.module
Implementation of hook_block.

File

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

Code

function _fb_connect_block_login_defaults() {
  return array(
    'anon_not_connected' => array(
      'title' => t('Facebook Connect'),
      'body' => t('Facebook users login here. !button', array(
        '!button' => "<fb:login-button onclick='fb_connect_login_onclick();'></fb:login-button>",
      )),
    ),
    'user_not_connected' => array(
      'title' => t('Facebook Connect'),
      'body' => t('Link your account with Facebook. !button', array(
        '!button' => "<fb:login-button onclick='fb_connect_login_onclick();'></fb:login-button>",
      )),
    ),
    'connected' => array(
      'title' => t('Facebook Connect'),
      'body' => "<fb:profile-pic uid=!fbu></fb:profile-pic><fb:login-button onclick='fb_connect_logout_onclick();' autologoutlink=true></fb:login-button>",
    ),
  );
}