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
visibility
Determines the visibility of Custom pagers depending on node type and URL
February 25, 2011 - 9:52am — Anonymous
if
(
(
$node
->
type
==
'photo'
)
&&
(
arg
(
1
)
===
'category'
)
)
{
return
TRUE
;
}
else
{
return
FALSE
;
}
custom pagers module
php
visibility
block node visibility
August 10, 2010 - 3:34pm — Anonymous
<?php
if
(
arg
(
0
)
==
'user'
&&
arg
(
1
)
==
$user
-
>
uid
)
{
return
true
;
}
?>
arguments
block
php
visibility
Fix for Fix for Trying to control visibility of a block
November 4, 2009 - 5:00am — Anonymous
<?php
if
(
(
arg
(
0
)
==
'node'
)
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
=
node_load
(
arg
(
1
)
)
;
if
(
$node
-
>
type
==
'hotel'
)
{
return
FALSE
;
}
return
TRUE
;
}
?>
block
visibility
Fix for Trying to control visibility of a block
November 4, 2009 - 4:58am — Anonymous
<?php
if
(
(
arg
(
0
)
==
'node'
)
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
=
node_load
(
arg
(
1
)
)
;
if
(
$node
-
>
type
==
'hotel'
)
{
return
FALSE
;
}
return
TRUE
;
?>
block
visibility
Trying to control visibility of a block
November 4, 2009 - 4:54am — Anonymous
<?php
$match
=
true
;
if
(
(
arg
(
0
)
==
'node'
)
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
=
node_load
(
arg
(
1
)
)
;
if
(
$node
-
>
type
==
'hotel'
)
{
$match
=
false
;
}
return
$match
;
?>
block
visibility
Blog author information
February 7, 2008 - 6:39pm — Anonymous
<?php
// $Id$
/**
* @file
* Implements block for showing archives, user picture, and links for blog sidebars.
*/
function
blog_sidebar_block
(
$op
=
'list'
,
$delta
= 0,
$edit
=
array
(
)
)
{
block
module
visibility
Read more