variables for module_invoke

conniec - July 24, 2008 - 03:40

Hi all,

I've spent longer than I want to admit trying to figure out module_invoke and I need your help!
I've found examples on how to use module_invoke for displaying a block but that's not what I want to do.

I want to take a variable $num and node ID from a views page and put it into another module at the same node ID. I've looked around, tried different combinations and I think module_invoke is the way to go. I just can't figure out how.

Please help.

Connie

module_invoke is meant to

nevets - July 24, 2008 - 04:02

module_invoke is meant to invoke hook functions, the first argument is the name of a module, the second the name of a hook. The remaining parameters depend on the hook. It is not clear from your post what you mean by "put it into another module at the same node ID" since on can call functions in another module either directly or through links if there is an appropriate menu entry.

Thanks, nevet, for the

conniec - July 24, 2008 - 12:55

Thanks, nevet, for the reply. YOur explanation helps.

I should reword the "put it into another module..." I created a new content type with $text and that creates a nid. I want to put that $text variable into another module and associate it with that same nid for the new content type.

Sorry, I'm having a hard time explaning this. I appreciate your sticking with me to help me get this sorted outed.

Connie

Ok, a nid is simply a node

nevets - July 24, 2008 - 14:24

Ok, a nid is simply a node index, when content of any type is created a node is made and a new nid assigned. So what do you mean by you "want to put that $text variable into another module and associate it with that same nid for the new content type"? What is this other module doing?

I have a content type called

conniec - July 24, 2008 - 15:13

I have a content type called AREAS, I enter information about a particular area, places of interest, description, locale, and reference book ISBNs that relate to this area. This information comes from a spreadsheet which I enter via node import. The ISBNs are sometimes those long, awkward ones with 13 digits or dashes that I convert to 10 digit ones via php in the views output.

I need to input the clean 10 digit ISBN into the Amazon Tools while keeping the area in my contact type still associated with the ASIN.

The module is AMAZON, the hook is nodeapi, the variable is $ASIN. What do I need to do with NID to make sure that the right ISBN form the Amazon module goes with the right area.

Thanks, nevet, for helping me learn this.

Connie

PS If I get this figured out, I promise to write it up for anyone else to benefit from.

 
 

Drupal is a registered trademark of Dries Buytaert.