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

#default_value causes many select options to be "selected" during form rendering

Hello,

I came across a peculiar problem when creating forms using the forms api

my form has the following select element

(
    [#required] => 
    [#attributes] => Array
        (
            [class] => form-select
        )

    [#description] => 
    [#input] => 1
    [#name] => region
    [#value] => 0
    [#id] => edit-region
    [#processed] => 
    [#weight] => 0.001
    [#options] => Array
        (
            [0] => None
            [N] => Select Multiple
            [P] => Select All
            [1] => North America
            [10] => South America
            [2] => Asia
            [3] => Africa
            [4] => Europe
            [5] => Latin America
            [6] => Pacific
            [7] => Polar
            [8] => Caribbean
            [9] => Central America & Mexico
        )

    [#default_value] => 0
    [#title] => Destination Region
    [#post] => Array
        (
        )

    [#programmed] => 
    [#parents] => Array
        (
            [0] => region
        )

    [#tree] => 
    [#type] => select
)

as seen from above the default_value is supposed to the option[0] but when i render the form i get the options 0, M and N as selected options.
This is a serious bug. i'm using drupal-5.0-rc1. Has anyone seen this issue before ?

4.7 story modules upgrade 5.0

What changes need to be made to a module based on the story module (4.7) to make it compatible with 5.0

other than including a .info file

have seen the list of changes but cant seem to do this simple up grade

have the structure of form arrays changed ???

tks

does autocomplete do full bootstrap?

I want to do some callbacks in a module and I would just use a method like autocomplete, but I am wondering:

Does an autocomplete, like any on the ones on drupal.org, require a full bootstrap?
If so, isn't that a little excessive?
If not, then can anyone fill me in on best practice in this respect?

Module Gmap

Hello,

I'm using the gmap module for drupal.

I don"t know why but my images aren't transparent... why?

Take a look at this shot: http://www.freelink.be/micobros/map.gif

You can see that the marker, the google resize tool and the google logo aren't transparent...

Do you guys know the reason?

thanks,

micobros

display statistics in a block

hello folks! how do i display statistics in a block? thanks in advance!

Anyone use pearwiki/mediawiki on Drupal 5.1?

I am using the newest version pearwiki + mediawiki (pearwiki_filter-5.x-1.0.tar.gz or pearwiki_filter-5.x-1.x-dev.tar.gz), and only this filter used. But i cannot get the correct table.

I input:

{|
| Cell 1, row 1 
| Cell 2, row 1
|-
| Cell 1, row 2 
| Cell 2, row 2
|}

Then i get

Pages

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