DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 15 min
ago
Code
13 hours 15 min
ago
scrollbox.js
17 hours 35 min
ago
imagefield_gallery_scrollbox.module
17 hours 36 min
ago
more
Tags
CCK
drupal
fapi
javascript
jquery
menu
module
Panels
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
fapi
Fix for Trying to insert text into "subject" field of the comments form.
June 25, 2008 - 5:07pm — Anonymous
/**
* Implements hook_form_alter.
* Client wants the subject field to initially be blank.
* If the user doesn't type in a subject line, then the
fapi
override existing field
Read more
Fix for Trying to insert text into "subject" field of the comments form.
June 25, 2008 - 2:07pm — Anonymous
/**
* Implements hook_form_alter.
* Client wants the subject field to initially be blank.
* If the user doesn't type in a subject line, then the
fapi
override existing field
Read more
Fix for Code
June 24, 2008 - 10:51am —
Xano
phptemplate_form
(
$element
)
{
$id
=
'id1,id2,id3,id4,en,nog,een,id'
;
if
(
in_array
(
$element
[
'#id'
]
,
explode
(
','
,
$id
)
)
)
{
$element
[
'attributes'
]
[
'class'
]
.=
'JOUWCUSTOMCLASS'
;
}
fapi
Read more
Fix for Code
June 24, 2008 - 10:33am — Anonymous
phptemplate_form
(
$element
)
{
$id
=
'id1,id2,id3,id4,en,nog,een,id'
;
if
(
strpos
(
$id
,
$element
[
'#id'
]
)
!==
FALSE
)
{
$element
[
'attributes'
]
[
'class'
]
.=
'JOUWCUSTOMCLASS'
;
}
fapi
Read more
Fix for Edit a hidden value with jQuery and have it show up in $form_values (D5)
June 19, 2008 - 11:03am — Anonymous
<?php
/**
* This won't work when you first submit it... the hider will still show 3.
* Change #value to #default_value on the hidden field for it to work.
*/
function
test_form
(
)
{
fapi
jquery
Read more
Edit a hidden value with jQuery and have it show up in $form_values (D5)
June 19, 2008 - 11:00am — Anonymous
<?php
function
test_form
(
)
{
$form
[
'hider'
]
=
array
(
'#type'
=>
'hidden'
,
'#value'
=>
3
)
;
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
'Submit'
)
;
return
$form
;
}
fapi
jquery
Read more
form api radios?
June 13, 2008 - 11:37am — Anonymous
$form
[
'step1'
]
=
array
(
"#type"
=>
"fieldset"
,
"#title"
=>
t
(
"What type of point would you like to add"
)
,
)
;
foreach
(
$validtypes
as
$type
=>
$info
)
{
fapi
Read more
FAPI Protection
May 12, 2008 - 8:38am —
afeijo
// 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
fapi
Read more
AHAH FAPI Callback Helper
April 10, 2008 - 6:35pm —
Wim Leers
// Example usage. This is an AHAH callback function.
function
mymodule_ahah
(
)
{
// Update the form and render only the wrapper inside the "Refund Settings"
// fieldset.
ahah
drupal6
fapi
Read more
AHAH helper - not yet working
April 10, 2008 - 6:18pm —
Wim Leers
<?php
function
&ahah_helper_get_form_element
(
$form
,
$parents
)
{
// Allow $parents to be either an array of the element's parents or the name
// of an element.
ahah
drupal6
fapi
Read more
1
2
3
next ›
last »