DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
checkboxes
Update multiple checkboxes in a N:M relationship
September 29, 2011 - 10:11am — Anonymous
// Save the pods that were enabled for this room
// $vars['pods'] has values that come from a form postback - from a field of type checkboxes
// in the database, a room(rid) can have zero or multipl
checkboxes
database
Forms
many-to-many
multiple
one-to-many
Read more
ENKNOT: Figuring out FAPI
April 27, 2011 - 12:17pm — Anonymous
function
email_name_admin_settings
(
)
{
$values
=
unserialize
(
variable_get
(
'email_name_edit_roles'
,
serialize
(
array
(
)
)
)
)
;
sort
(
$values
)
;
dvm
(
$values
,
'SET UP'
)
;
$form
checkboxes
fapi
Read more
Fix for Fix for Example of displaying multiple checkboxes,alue selected with one v
November 30, 2009 - 7:15am —
balaji
$form
[
'option_occassions'
]
=
array
(
'#type'
=
>
'checkboxes'
,
'#title'
=
>
t
(
'Associated Occassions'
)
,
'#options'
=
>
array
(
1
=
>
"Formal"
,
2
=
>
"Social"
,
3
=
>
"Xmas"
,
4
=
>
checkboxes
fapi
Forms
Read more
Fix for Example of displaying multiple checkboxes,alue selected with one v
November 27, 2009 - 9:53am — Anonymous
$form
[
'option_occassions'
]
=
array
(
'#type'
=
>
'checkboxes'
,
'#title'
=
>
t
(
'Associated Occassions'
)
,
'#options'
=
>
array
(
1
=
>
"Formal"
,
2
=
>
"Social"
,
3
=
>
"Xmas"
,
4
=
>
checkboxes
fapi
Forms
Read more
Example of displaying multiple checkboxes, with one value selected
September 25, 2008 - 12:56am — Anonymous
$form
[
'option_occassions'
]
=
array
(
'#type'
=
>
'checkboxes'
,
'#title'
=
>
t
(
'Associated Occassions'
)
,
'#options'
=
>
array
(
1
=
>
"Formal"
,
2
=
>
"Social"
,
3
=
>
"Xmas"
,
checkboxes
fapi
Forms
Read more
Broken FAPI?
February 21, 2008 - 9:08am — Anonymous
$node_types
=
node_get_types
(
'names'
)
;
$form
[
'tqf'
]
[
'types'
]
=
array
(
'#title'
=
>
t
(
'Nodes'
)
,
'#type'
=
>
'checkboxes'
,
'#options'
=
>
$node_types
,
checkboxes
fapi
Read more