I need to get the $status returned from twitter_post_node_insert() so when I call the hook with module_invoke() I can use the $status to build a link with _twitter_status_url() and then put that in the state_flow history block.

Now, I don't think this is the best way to do this but it works for my implementation and I want to post this to get feedback on a better way. I know I can strip out certain info from $_SESSION as that is where the messages are stored but that seems a bit on the hacky side.

Patch below, this depends on https://drupal.org/node/2022485#comment-7552403 as well for it to apply and to even make sense on why I would want to do this.

Comments

elijah lynn’s picture

Status: Active » Needs review
StatusFileSize
new715 bytes
elijah lynn’s picture

Actually, above patch is bad, this one is better.

damienmckenna’s picture

Version: 7.x-5.8 » 7.x-5.x-dev
Issue summary: View changes
damienmckenna’s picture

Status: Needs review » Needs work

Triggering the testbot.

damienmckenna’s picture

Status: Needs work » Needs review

Triggering the testbot.

Status: Needs review » Needs work
damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new499 bytes

Rerolled.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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