DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 44 min
ago
weird filefield with mp3 embed object
2 hours 1 min
ago
D6 FAPI Examples
2 hours 29 min
ago
returning to the same code a second time doesn't have the $form_values argument set
6 hours 48 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
security scanner
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
D6 FAPI Examples
August 20, 2008 - 11:28am — Anonymous
<?php
// $Id: $
/**
* @file
* Makes a Form.
*
*/
function
form_intro_menu
(
)
{
$items
=
array
(
)
;
$items
[
'survey'
]
=
array
(
'title'
=>
'Super Sweet Survey'
,
fapi
Read more
Code
August 16, 2008 - 12:37pm — Anonymous
<?php
function
my_module_menu
(
)
{
$items
=
array
(
)
;
$items
[
'my_module/form'
]
=
array
(
'title'
=>
t
(
'My form'
)
,
'page callback'
=>
'my_module_form'
,
fapi
Read more
formulario
July 26, 2008 - 1:00pm — Anonymous
<code>
<?php
/**
* Formulario que permite guardar las partidas jugadas
* Form to save the game.
*/
function
alta_partida_form
(
$node
)
{
$form
[
'alta_partida'
]
=
array
(
fapi
form
Read more
formulario
July 26, 2008 - 1:00pm — Anonymous
<code>
<?php
/**
* Formulario que permite guardar las partidas jugadas
* Form to save the game.
*/
function
alta_partida_form
(
$node
)
{
$form
[
'alta_partida'
]
=
array
(
fapi
form
Read more
Adding submit handlers in D6
July 18, 2008 - 12:13pm —
Wim Leers
/**
* Implementation of hook_form_alter().
*/
function
hs_taxonomy_form_alter
(
&
$form
, &
$form_state
,
$form_id
)
{
// Add per-vocabulary settings for Hierarchical Select.
fapi
Read more
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
1
2
3
next ›
last »