Since this commit in Nov 2012 hook_twitter_account_save() is invoked with only one argument $values; twitter.api.php needs to be updated to reflect this.

As I'm going to implement this hook anyway, I might well fix this along the way.

Comments

juampynr’s picture

Patch?

Drave Robber’s picture

Later today. :)

Drave Robber’s picture

Title: API documentation for hook_twitter_account_save() is outdated » Update API documentation for hook_twitter_account_save()
Assigned: Drave Robber » Unassigned
Status: Active » Needs review
StatusFileSize
new4.42 KB

Patch attached. Relevant CS were followed.

I left other hooks alone for now, might pay some attention when I get to implementing them. 62 lines of Doxygen is enough for a normal day, after all. :D

13rac1’s picture

Status: Needs review » Reviewed & tested by the community

Nice work Drave! Patch applies cleanly.

pavlosdan’s picture

+1 For getting this in.

We are using this hook to fire a Rules event but we were getting a whitescreen when Twitter redirected the user back to our site with an

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 744 of /var/www/site/public_html/sites/all/modules/entity/includes/entity.wrapper.inc).

error and an
"Unauthorized" error from Twitter in the error log.

Correct documentation would have saved us a lot of time in debugging this :)

damienmckenna’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
Parent issue: » #2402307: Plan for Twitter v7.x-5.9 release

Triggering the testbot.

Status: Needs review » Needs work

Status: Needs review » Needs work
damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new4.09 KB

Rerolled.

damienmckenna’s picture

Status: Needs review » Fixed

Committed to the 7.x-5.x branch.

damienmckenna’s picture

Version: 7.x-5.x-dev » 7.x-6.x-dev
StatusFileSize
new552 bytes

This hook doesn't exist in the 7.x-6.x branch, but it's still mentioned in the API file.

damienmckenna’s picture

Version: 7.x-6.x-dev » 6.x-5.x-dev
Status: Fixed » Needs review
StatusFileSize
new3.98 KB

Rerolled for the 6.x-5.x branch. This needs to be reviewed to confirm the docs are accurate.

damienmckenna’s picture

Removing this from the 7.x release plans to avoid confusion.

damienmckenna’s picture

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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