function fbconnect_render_button in Facebook Connect 6.2
Same name and namespace in other branches
- 5 fbconnect.module \fbconnect_render_button()
- 6 fbconnect.module \fbconnect_render_button()
Render a custom button to log in via Facebook.
4 calls to fbconnect_render_button()
- fbconnect_appearance_settings in ./
fbconnect.admin.inc - @todo.
- fbconnect_fbapp_settings in ./
fbconnect.admin.inc - @todo.
- fbconnect_form_alter in ./
fbconnect.module - Impletementation of hook_form_alter().
- theme_fbconnect_user_profile_tab_unconnected in ./
fbconnect.pages.inc - @todo.
File
- ./
fbconnect.module, line 248 - Integration with Facebook Connect API.
Code
function fbconnect_render_button($attr = array()) {
list($size) = explode('_', variable_get('fbconnect_button', NULL));
$default_attr = array(
'text' => variable_get('fbconnect_button_text', t('Connect')),
'size' => $size,
'onlogin' => 'facebook_onlogin_ready();',
'background' => 'dark',
'v' => 2,
);
$attr = array_merge($default_attr, $attr);
$text = $attr['text'];
unset($attr['text']);
return theme('fbconnect_login_button', $text, $attr);
}