function _fb_user_button_text in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb_user.module \_fb_user_button_text()
- 7.4 fb_user.module \_fb_user_button_text()
Helper function to retrieve button text.
2 calls to _fb_user_button_text()
- fb_user_admin_settings in ./
fb_user.admin.inc - Form builder; Configure settings for this site.
- fb_user_form_alter in ./
fb_user.module - Implements hook_form_alter().
File
- ./
fb_user.module, line 550 - This module manages relations between local Drupal user accounts and their accounts on facebook.com.
Code
function _fb_user_button_text($form_id) {
$button_text =& drupal_static(__FUNCTION__);
if (!isset($button_text)) {
$button_text = array(
'user_register_form' => variable_get(FB_USER_VAR_TEXT_REGISTER, NULL),
'user_login' => variable_get(FB_USER_VAR_TEXT_LOGIN, NULL),
'user_login_block' => variable_get(FB_USER_VAR_TEXT_LOGIN_BLOCK, NULL),
);
}
return isset($button_text[$form_id]) ? $button_text[$form_id] : '';
}