API hook signature on user save seems old or wrong in twitter.api.php. I found it uses single argument, and it is array, merged twitter and drupal account data obviously:

/**
 * Notifies of a saved twitter account.
 *
 * @param $account
 *   User account object.
 * @param $values
 *   Twitter account values.
 * @see twitter_account_save()
 */
function hook_twitter_account_save($account, $values) {}
CommentFileSizeAuthor
#1 api-signature-fix-1953280-1.patch0 byteslifecoderua

Comments

lifecoderua’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes

I think this patch should helps

lifecoderua’s picture

Ow, the patch is empty.. Here is a code I've change in twitter.api.php:

/**
 * Notifies of a saved twitter account.
 *
 * @param $values
 *   array of merged Drupal and Twitter account values.
 * @see twitter_account_save()
 */
function hook_twitter_account_save($values) {}
damienmckenna’s picture

Issue summary: View changes
Status: Needs review » Needs work

Triggering the testbot.

damienmckenna’s picture

Status: Needs work » Needs review

Triggering the testbot.

damienmckenna’s picture

Version: 7.x-6.x-dev » 6.x-5.x-dev
Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.