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

numeric values in forms?

I've got my first module working now.
I want the user to enter a number in a form field. The only field I see to use is form_textfield. But I don't want to save the value as a string, I want to save it as an int.

If I do this in the hook_form:

$output .= form_textfield(t('Quantity'), 'quantity', $node->quantity, 60, 128, NULL, NULL, TRUE);

I think it expects 'quantity' to be a column of type string.

Filter / Input Format Module

Hi All:

I'm developing a filter module, and I can't get it to apply to all output. It appears to only apply to items as they are entered. If I make a change in the module, it won't show up in existing items but will when I enter new ones. Is this the way the system is supposed to work, or is there a way to filter all output?

Simpsons Quote Module

I just found this cool plugin for wordpress and was hoping someone here could turn it into a drupal module... or point me in the right direction to figure it out for myself.

http://phunky.co.uk/simpsons-wp-plugin/

Access Http Header in Module

Hi,
Is there a way to access the complete http-header which is sent to the webserver, when a user clicks on a link somewhere on my drupal site, from 'inside' a normal self written drupal module?
I need this, because i got to render parts from an external website into a drupal page. This external Page requires cookie based login.
Anyone ever worked on portal-like features - or anyone can tell me which cms already has some build in mechanisms to hook in other webapplications?
regards, borghart

flexinode file size limits?

A quick question. In Drupal 4.5.0, you can set the file size limits in the upload.module. Does anyone know how to do this this when using flexinode with file attachment enabled? I want to prevent users from uploading big files. Flexinode only permits one file upload per node, which is great. But I want to control the file's size as well. Any ideas?

thanks,
larry

Multiple registration paths? Any clue how to do this?

Let me explain.

Basically, I am interested in having two registration paths. ie. Registration for 'Role A', and a different registration for 'Role B'. To simplify things, a user can only be in Role A or Role B and not both ;)

Is this a hard task? I've searched the forums but didn't find much information regarding this. Does anyone have any suggestions before I start hacking out code ? (I always ask first, I can't tell me how many times advice from this forum has saved me countless hours)

Cheers and good day!

..jordan

Pages

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