Form API

GRRRRRRR,

Ok, the new form API is cool and all, But im really having a pain displaying and editing this stuff.

Here it goes....
$form['easiness'] = array(
'#type' => 'radios',
'#title' => t('Easiness 1-5'),
'#options' => array('','','','',''),
'#required' => TRUE,
);

That outputs 5 radio buttons one on top of the other (vertically). I need them all to be horizontal. Then, the first radio button has a value of "0", the next "1", etc. I need the radio buttons to start from 1 and go to 5.

Why the change in the from API from beta2 to beta3 with regards to #type => checkboxes, and how to deal with it?

The result of a #type => checkboxes call changed. and my module is misbehaving :-(

In beta 2 the array from a group of checkboxes created with a #type => checkboxes call would look something like this:

[file] => Array
        (
            [files/uploads/jsdomenu.config.js] => 1
            [files/uploads/jsdomenu.inc.js] => 0
            [files/uploads/jsdomenu.js] => 0
            [files/uploads/jsdomenubar.js] => 0
        )

Now in beta3 it looks like this:

[file] => Array
        (
            [files/uploads/jsdomenu.config.js] => files/uploads/jsdomenu.config.js
            [files/uploads/jsdomenu.inc.js] => 0
            [files/uploads/jsdomenu.js] => 0
            [files/uploads/jsdomenubar.js] => 0
        )

I had validation code depending on that 1!! *argh*
Anyway, it should not be too much of a problem to work around that. The real problem is that when validation fails, or preview is used, all checkboxes become checked automagically. That did not happen in beta2.

this is how I call the checkboxes:

$form['files']['file'] = array(
      '#type' => 'checkboxes',
      '#title' => t('Files'),
      '#default_value' => $node->file,
      '#options' => $files,
    );

And this is a typical $files for the #options:

Array
(
[files/uploads/jsdomenu.config.js] => jsdomenu.config.js

BUG FIX party right now

Dear all,
the bug fix party is happening right now.
irc.freenode.net
channel is #drupal.fix

http://webchick.net/bugfixwiki/index.php/Main_Page
has the bugs we are working on

Category.module updating beta versions

Greetings,
When new versions of category.module (or other modules) are updated is it just a matter of overwriting the files in the modules folder? I've read a couple of threads on 4.7 that the database will not be affected once the official version is released.
Mil gracias,
lsabug

4.7.0-beta3 can't create admin user, 4.6.5 works fine

Hey guys, I've been using 4.6.5 for some time now without problem, but when I did a fresh install of 4.7.0-beta3 I cannot register the initial admin user. This is on a host with php 4.3.4, everything works under 4.6.5. I've applied my config to 4.7.0-beta3 and have a rendering site, but when I try to register the admin user as the first user, the form submits and the page refreshes back to create a user - I get no confirmation email or message in the browser to indicate that anything has happened.

goofy theme broken in 4.7.0-beta3?

When I try the goofy theme all the blocks disapear, In particular the Navigation block. When I try to configure the theme, I get:

>
Fatal error: Call to undefined function form_checkbox() in /opt/lampp/htdocs/drupal-4.7.0-beta3/themes/engines/goofy/goofy.theme on line 9
<

Is it just me?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x