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

Forms 4.7 trouble: best way to process a form?

I want a form to submit, update a DB record, then re-render itself with the new info in the form. I am using
function formname() {...}
to render the form, and
function formname_submit() {...}
to process the form. However I find I am unable to modify the form (e.g. add a hidden form field) in the
formname_submit() function. The problem: After the submit button is clicked, Drupal 4.7 seems to first execute the function formname(), THEN execute function formname_submit(). So you do not process the form until after you have re-rendered it.

Page not found error

Hello

I am new to the module development. I want to create a profile module.

I am not faimiliar with the various access in drupal.

When I created a path like below it works:

'type' => MENU_SUGGESTED_ITEM);
$items[] = array('path' => 'profiles', 'title' => t('user list'),
'callback' => 'profile_display',
'access' => TRUE,
'type' => MENU_SUGGESTED_ITEM);

where as when we give the path like that below, it wont works. It is showing the page not found error.

PayPal Subscriptions module - site IPN reply page is blank

Hi,

I have the PayPal Subscriptions module almost working but have one pretty niggly issue:

- The IPN return page that PayPal redirects to - http://%mysite%/paypal/ipn is blank/empty.

I'd expect this page to have something on it thanking the customer for their payment but nothing appears.
The rest of the module is working beautifully (thanks) : I do get notified of the payment and it does have a status of 'completed'. So the correct code is actually executed.

Spell checking database entries

Hi,

I'm in the process of writing a "film production" database module for drupal. It will have tables (nodes) like "Projects", "Cast and Crew" etc. Obviously, I'd like to connect the "Projects" table to the "Cast and Crew" table with a many-to-many relationship. But my question is this: how can I "spell check" names to see if they already fit in the database.

Some things I'd like the search system to do:

AJAX HOW TO for module developers

Hi everyone,

I would like to use AJAX (to submit form data and get response) for a simple module I am developing. From the disscussion that has been going on in the forums I have learnt about the functions (HTTPPost, HTTPGet etc) available in misc/drupal.js. But I have no idea as how to implement these functions. Can anybody point me to a 'HOW TO' or else provide me some examples on how to use this functions.

Perhaps a handbook page in the module developers guide could be dedicated for this purpose as I believe many are eager to try AJAX with Drupal.

Cannot get formproc module to count characters - any experts?

I am using Alex Reisner's excellent formproc module, but cannot get the "formproc_charcount" feature to work. A working example of it can be found at his page at:
http://www.alexreisner.com/drupal/modules/formproc

Pages

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