array(), ); if (!isset($options['attributes']['perms'])) { // Which permissions to prompt for? $perms = array(); drupal_alter('fb_required_perms', $perms); if (count($perms)) { $options['attributes']['perms'] = implode(',', $perms); } } $button = '' . ($text ? '' . check_plain($text) . '' : '') . ''; return $button; } function theme_fb_username($params) { $fbu = $params['fbu']; $object = $params['account']; $orig = $params['orig']; if (!$fbu || arg(0) == 'admin') { return $orig; } $wrap_pre = "$orig\n"; $ifcantsee = ''; if ($object->uid && user_access('access user profiles')) { // Provide link if local account. $wrap_pre = $wrap_pre . ''; $wrap_post = '' . $wrap_post; $ifcantsee = 'ifcantsee="' . addslashes(check_plain($object->name)) . '"'; } $fbml = ""; $output = $wrap_pre . $fbml . $wrap_post; return $output; } function theme_fb_user_picture($params) { if (!$params['fbu']) return $params['orig']; $fbu = $params['fbu']; $object = $params['account']; $orig = $params['orig']; // http://developers.facebook.com/docs/reference/fbml/profile-pic $fbml = ""; $wrap_pre = '' . $orig . ''; if ($object->uid && user_access('access user profiles')) { // Provide link to local account. $wrap_pre = $wrap_pre . ''; $wrap_post = '' . $wrap_post; } return $wrap_pre . $fbml . $wrap_post; } function theme_fb_fbml_popup($elem) { // Hide this markup until javascript shows it. $t = '\n"; return $t; }