function fbconnect_render_button in Facebook Connect 5
Same name and namespace in other branches
- 6.2 fbconnect.module \fbconnect_render_button()
- 6 fbconnect.module \fbconnect_render_button()
Render a custom button to log in via Facebook.
2 calls to fbconnect_render_button()
- fbconnect_form_alter in ./
fbconnect.module - Impletementation of hook_form_alter.
- fbconnect_user_identities in ./
fbconnect.module - Menu callback fbconnect identities
File
- ./
fbconnect.module, line 921 - This module allows site visitors to connect and register with facebook account
Code
function fbconnect_render_button() {
list($size, $length) = explode('_', variable_get('fbconnect_button_type', array(
'medium-short',
)));
return '<fb:login-button onlogin="facebook_onlogin_ready();" size="' . $size . '" background="white" length="' . $length . '">
</fb:login-button>';
}