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 = '' . '' . check_plain($text) . ''; return $button; } function theme_fb_username($fbu, $object, $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($fbu, $object, $orig) { if (!$fbu) return $orig; $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; }