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
#defualt_value
Fix for Show block: how if the following PHP code returns TRUE (PHP-mode, experts only).
July 16, 2009 - 10:32am — Anonymous
<?php
$match
=
false
;
if
(
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
=
node_load
(
arg
(
1
)
)
;
if
(
$node
-
>
type
==
'produkt'
)
{
$match
=
TRUE
;
}
}
return
$match
;
?>
#defualt_value
hokla
July 15, 2009 - 4:56pm — Anonymous
Hola
#defualt_value
the multiple select #default_value
December 11, 2007 - 5:08am — Anonymous
$form['mylist'] = array(
'#type' => 'select',
'#title' => 'Select From List'
'#options' => array(0=>'A', 1=>'B', 2=>'C' ,3=>'D',),
'#multiple' => true,
'#size' => 3,
#defualt_value
fapi
multiple=true
select
Read more