twitter_post implemented hook_nodeapi, which is not used in drupal 7 anymore. The attached patch fixes this by using hook_node_insert() and hook_node_update().

Comments

gnoddep’s picture

StatusFileSize
new3.33 KB

Fixed the patch, it should apply with git --apply now

juampynr’s picture

plopesc’s picture

StatusFileSize
new1.23 KB

Hello

I made some minor improvements in the patch provided by gnodepp:

  • Twitter Post fieldset is included in the "Aditional Settings" vertical tabs component
  • It works with hook_node_presave instead of hook_node_insert and hook_node_update

Regards

Status: Fixed » Closed (fixed)

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

juampynr’s picture

Category: bug » feature
Priority: Major » Normal
Status: Closed (fixed) » Needs review

Updated status to evaluate it when we get to a lower number of bug issues.

@plopesc, wont you participate in the #DrupalConTribute Twitter? Check out the Madrid group.

Alex Andrascu’s picture

Is this going to get at least in .dev at some point before D8 is out ?

juampynr’s picture

Status: Needs review » Fixed
chia’s picture

Status: Fixed » Needs work

I think its better to use hook_node_insert and hook_node_update.

During a new node creating, we dont have the node url in hook_node_presave (because we dont have nid) at that time.

juampynr’s picture

@plopesc, can you revert back that bit and keep the grouping in a new patch?

plopesc’s picture

Status: Fixed » Needs review
StatusFileSize
new965 bytes

You are right, chia

I rerrolled the patch fixing that problem.

I'm going to create a test file for this module later.

Regards

juampynr’s picture

Status: Needs work » Fixed

Status: Needs review » Closed (fixed)

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