DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
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
blocks
Fix for Display block on specific node type, and set current node ID as view argument for node reference.
January 13, 2011 - 7:17am — Anonymous
<?php
// Make sure this is a block version of the view, and the current page is a node
if
(
$view
->
build_type
==
'block'
&&
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
// load node info to deter
blocks
CCK
node-reference
views
Read more
block logic not working
January 6, 2011 - 5:28pm — Anonymous
<?php
if
(
$block
-
>
region
==
'navigation'
||
'sections'
)
:
echo
render
(
$content
)
;
elseif
(
$block
-
>
region
==
'left'
||
'right'
)
:
?>
<div class="frameWrapper clearfix">
<div class="frameTop c
block logic
blocks
Read more
Zen edit_links_array as an array of arguments to pass to l()
April 28, 2009 - 10:22am — Anonymous
// Display 'edit block' for custom blocks.
if
(
$block
-
>
module
==
'block'
)
{
$edit_link
[
'title'
]
=
t
(
'edit block'
)
;
blocks
zen
Read more
Code
April 26, 2009 - 9:48pm — Anonymous
/**
* Implementation of hook_theme_registry_alter().
*
* Make simpleblocks' block preprocess function run *after* everything else's,
blocks
zen
Read more
Amorfati's page.tpl.php
April 16, 2008 - 1:14pm — Anonymous
<!
DOCTYPE html
PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
blocks
page.tpl.php
Read more
Fix for Display block on specific node type, and set current node ID as view argument for node reference.
January 6, 2008 - 8:44am — Anonymous
<?php
// Make sure this is a block version of the view, and the current page is a node
if
(
$view
->
build_type
==
'block'
&&
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
blocks
CCK
node-reference
views
Read more
Fix for Display block on specific node type, and set current node ID as view argument for node reference.
December 26, 2007 - 6:41am — Anonymous
<?php
// Make sure this is a block version of the view, and the current page is a node
if
(
$view
-
>
build_type
==
'block'
&&
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
blocks
CCK
node-reference
views
Read more
Display block on specific node type, and set current node ID as view argument for node reference.
November 13, 2007 - 9:37pm —
jGirlyGirl
<?php
// Make sure this is a block version of the view, and the current page is a node
if
(
$view
->
build_type
==
'block'
&&
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
blocks
CCK
node-reference
views
Read more