DrupalBin
Submit Code
About
Recent Posts
css path
9 min 3 sec
ago
Fix for Code
4 hours 8 min
ago
Fix for Code
4 hours 14 min
ago
Fix for Code
4 hours 22 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for form api radios?
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
$form['step1'] = array( "#type" => "fieldset", "#title" => t("What type of point would you like to add"), ); foreach ( $validtypes as $type => $info ) { $form['step1']['type'][$type] = array( '#type' => 'radio', '#name' => 'type', '#title' => $info['name'], '#description' => $info['description'], '#return_value' => $type, ); } $form['step1']['default'] = array( '#type' => 'checkbox', '#title' => t('Please use this selection as my default'), '#default_value' => 0, ); $form["submitbtn"] = array( "#type" => "submit", "#value" => t("Next") ); return $form; The $_POST is how it should be: Array ( [type] => article [op] => Next [form_build_id] => 35032606e64f1978fc8f61c4847bbcd3 [form_token] => 1a47ceb7ca7e361d4be1d97533ead120 [form_id] => imsaddpoint_pointform ) The $form_values is not correct: Array ( [contact] => [hca] => [default] => 0 [op] => Next [submitbtn] => Next [form_build_id] => 35032606e64f1978fc8f61c4847bbcd3 [form_token] => 1a47ceb7ca7e361d4be1d97533ead120 [form_id] => imsaddpoint_pointform )
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.