DrupalBin
Submit Code
About
Recent Posts
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
56 min 34 sec
ago
Code
1 hour 51 min
ago
Code
5 hours 50 min
ago
oopsie in modules/taxonomy/taxonomy.test
7 hours 48 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 FAPI Protection
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:
*
// AHAH and AJAX implementation // Get form from cache and store modified selection $form = form_get_cache($_POST['form_build_id'], $form_state); // update the select content $form['qualify'][$nextq]['#options'] = $matches['opt'][$mod]['data']; // save cache form_set_cache($_POST['form_build_id'], $form, $form_state); // Rebuild the form. $form_state = array('submitted' => FALSE);
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.