This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How do I get a variable (the transaction ID from ecommerce PayPal Module) for use in hooked in module(pay-per-node)

Hi,
I'm sheepishly trying to hack my way out of a bug when using the ecommerce paypal module with the pay-per-node module.

I need to get the transaction ID that is returned to ecommerce for use in the pay-per-node module, so I can do a quick database querry to get the UID for the user submitting the order, as the global $user doesn't seem to be set with the IPN happens via paypal, I suspect because of the leaving of the site to go to paypal for the time being.

Regardless, I'm trying to figure out how I can access to that value.

From the paypal.module, the function paypal_ipn() sets the value thusly:

        $txnid = substr($value, strlen('txnid_'));

I need access to this value in the pay-per-node modules paypernode_productapi function, specifically in:

    case 'on payment completion':

The paypernode_productapi does not appear to take as an argument anything useful for this, here's the decleration:

function paypernode_productapi(&$node, $op, $a3 = null, $a4 = null) {

But, I have to admit, I'm a bit fuzzy on how this whole module hooking into another module thing works, so I'm not really sure from where this function actually gets declared and called.

When creating a custom node using Form API - How do I hide Node Fields/field sets that I did not want to appear on input form

I created a custom node after reading the documentation and I have several fields being displayed that I did not put in the hook form. I am using 5.0.

Those fields include: Log message, URL Path Settings, Comment Settings, Authoring Information, Publishing Options and Preview.

How can I hide these fields and field groups from displaying in the input form for my custom node? Also I may want to do this in a multi-step form is this possible?

Thanks in advance

switch off FCK in the Contact Form

Hi everybody,

Is there a way to switch off the FCK-Editor in the Contact Form (/user/1/contact)?

I`ve nothing found about that in the DyupalSystem and the Forum.

Has anyone an idea?

regards
Helge

hook_menu and 'node/%/edit'

The menu hook of the node module, since version 5.0, makes use of something I haven't seen before - the % character in paths.

This is clearly a technique to allow paths whose arguments aren't necessarily at the very end of the URI, but in the middle - as in node/%/edit. Very useful.

Unfortunately, I've been unable to find this feature in the documentation. Can someone tell me how this is used and how the parameters get passed to the callback function?

What is best module for automatic hierarchical menu ?

i created a product module which add a new product content type.

i also created a taxonomy vocabulary (hierarchy:multiple, required) and assigned a list term to each product created.

what is the best module to help me to create an automatic hierarchical menu to access the products ?

Help...please with my site

Alright, I recently downloaded the gallery module to put on my website and everything seemed fine until today when I actually started implementing the module. Take a look at my website http://www.aviationflightzone.com . You will notice that on the left side there is a block named Random Image and at the bottom of the page there is a grid displaying additional photographs. One thing that I have noticed with the newsportal theme is that it will let pictures eat the page up.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions