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

Determine if page is a feed

Hi,

I am working on a patch for the single signon module, and i need a way to determine if the page currently served is a feed...

Anyone knows how to do it?

Thanks

FAPI problem - multipart form?

Scenario: learning form API. Built myself a nice form with a list of aggregator items, with associated checkboxes. I click some checkboxes, hit submit. Now I want to : do some processing on the checked items (I think I got that right), and then rebuild a form with fields resulting from this processing.

All multiform docs I found were for FAPI 1.0 and 4.7.x. Not sure of how one would do that in 5.x.

Best hook to write custom form data to an external table

Hello,

I have a custom form element that I want to save in an external database table.

function hook_form(&$node) {
  $form['thumbs']['radios'] = array(
    '#type' => 'radios',
    '#options' => array(
   			1 => 'One',
   			2 => 'Two',
   			3 => 'Three'),
    '#default_value' => 1
    );
}

I would like to know which hook I can use to read the custom form data, and the correct syntax for accessing the '$form['thumb']['radios']' value.

Cheers,

Neal

Can someone PLEASE give me some pointers on Shipcalc Partners *.inc

For the past 3 months i've been working on building an Ecommerce site for my mum's shop. I've got the design, and my mum has posted about 150 products. We're all set to go - except for a working shipping module. Ecommerce uses the Shipcalc contributed module to apply shipping costs at checkout time and add them to the total. To do this, Shipcalc uses "partners", which are shipping services that are accessed via an *.inc file in the "partners" directory of Shipcalc.

Unfortunately, unless you live in the USA or Canada, there are no "partner" files to be used. I live in Australia, so I need to build an *.inc file that will access the Australia Post Delivery Rate Calculaor API. There was a feature request for Shipcalc filed earlier in the year asking for this *.inc file, but it never got anywhere. My initial efforts to make one are documented at the bottom of that thread ... but I've only started a crash course in PHP a few days ago, so my first attempt was a bit dumb. In any case, I think I'm getting close.

Can someone who is familiar with Ecommerce module, and especially Shipcalc, please take a look at my *.inc file and those previously mentioned threads, and give me some pointers on how to get it working (I'm able to create configuration and product options and save them - basically everything works except the _get_rate function)?

Question about Drupal's link structure

Hi,

Is it possible to redirect link?
I mean, if have http://mysite.com/?q=page_A
and it has content, can I make that http://mysite.com/?q=page_B will show the content of 'page_A' but the address will still remain http://mysite.com/?q=page_B ?

Thanks for the help.

Any Chat module for 5.x ?

Hi,

is there any chat module available for 5.x, even in beta ? I tried jabber and chatroom, but neither of them work.

Thanks,

Xav

Pages

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