Skip to content
This repository has been archived by the owner on May 13, 2018. It is now read-only.

Commit

Permalink
Renamed block and added uid to info fetch call
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed May 13, 2010
1 parent 011d3e2 commit 0baa840
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connector.module
Expand Up @@ -54,7 +54,7 @@ function connector_block($op = 'list', $delta = 0) {
global $user;

if ($op == 'list') {
$block['one_click_block']['info'] = t('Sign in with other site');
$block['one_click_block']['info'] = t('Connector');
return $block;
}
elseif ($op == 'view') {
Expand Down Expand Up @@ -319,10 +319,11 @@ function _connector_information_update($uid, $types = NULL) {
}

$connections = _connector_get_user_connections($uid);
//TODO: What if there are no connections? Will it fail then?
$connector = _connector_get_connectors($connections[0]->connector);
if ($connector) {
if (isset($connector['information callback']) && is_callable($connector['information callback'])) {
$info = call_user_func($connector['information callback'], $connections[0]->cid, $types);
$info = call_user_func($connector['information callback'], $connections[0]->cid, $types, $uid);
}
$info = (array) $info;
foreach ((array) $types as $type => $value) {
Expand Down

0 comments on commit 0baa840

Please sign in to comment.