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

form_render ussage - how to generate form inside table?

hi,

i need to dynamically generate form that i put inside a table with some other data. so my question is how can i use form_render correctly?
i've tried to follow this example http://drupal.org/node/93218 but i get some wired warnings like this warning: implode(): Bad arguments. in /includes/form.inc on line 309. so i started digging and i've found this: http://drupal.org/node/78467 - well, great - i should not use form_render... there was something mentioned about #parents... ok i did some more digging and found this http://drupal.org/node/48643 - well, not much of a help - i have no clue how this #parents should be used, and the forms api does not say much about it, frankly it says nothing.
finally i've found this: http://drupal.org/node/47582 and thought that my problems will end... but NO! it all comes to the fact that my form is mixed with some other data inside a table. so theming my form won't do anything, cause to print the table i need that additional data. so again i ended up with nothing :(

basically i've started to experiment with #parents so i can kinda manually render my form inside a table using form_render. as soon as i got rid of the mentioned above warning, i've found out that:

  1. yes my form is rendered inside a table as i wish BUT...
  2. despite specifying the '#default_value' property value of my textfield remains empty
  3. name and id field of my [input ... ] tags are empty so i can't reference them after they are submitted

Taxonomy Category Browser in the menu block, or views exposed filter in the menu block, or youtube style navigation in menu bloc

Hi, I am trying to put up a taxonomy menu block, but I want users to be able to choose more than one term. Some modules sort of do it like the taxonomy filter module, but it isnt flexible enough to go backwards, or taxonomy browser, which is not in a block. THe best way would be like youtubes navigation style, where I can click to different terms and unclick them by clicking all. The views module has an exposed function that allows for what I wanted but it is in pulled down mode and also does not appear on a side menu block.

How To Make A 'Back' Button For Multipage Forms In Drupal 5.0?

I got multipage forms working with Drupal 4.7 following this nice explanation.

Now I'm upgrading one of my modules to Drupal 5.0 and followed Jeff's crystal clear explanation of the new Form API 2.0 to do it.

Everything works fine but I can't get a 'back' button working.

For example, I want to go from form in step 3 to form in step 2, with all the fields I had already filled.

Custom folders

Can you help me with this question:

How can users create custom directories and upload files to them?

Also i want to know how i can do this automatic?

undefined/defined function

How can i add/define function to my drupal 4.7 site.

I am trying to use a second db(mssql) for a module i am building.
But to connect to a mssql db you need functions that can't be used in drupal.

mssql_connect()
mssql_select_db()
..
.

my question: Can/Where do i add these function's

Sawmill screen size tags in your $footer

Anyone analysing their Drupal web logs using Sawmill?

If so, I've created a module that easily adds screen dimensions to your logs. It adds the blank image reference to your $footer, so it can be used on most themes without modification. It's tiny, but certainly makes adding sawmill support easy, especially if you have alot of Drupal sites.

Note that you don't have to have Sawmill to use this module -- we're only adding log lines here so that screen dimensions can be determined.

Pages

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