DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 44 min
ago
Fix for my user handler
2 hours 7 min
ago
Fix for my user handler
2 hours 10 min
ago
my user handler
3 hours 59 min
ago
more
Tags
CCK
fapi
javascript
jquery
menu
module
Panels
simpletest
template.php
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
template
call template file, pass variables
August 5, 2008 - 11:41pm — Anonymous
<?php
$text
= theme
(
'apply_template'
,
$data
)
;
return
$text
;
function
theme_apply_template
(
$data
)
{
ob_start
(
)
;
include
path_to_theme
(
)
.
'/my-block.tpl.php'
;
block
template
theme
Read more
custom node template
June 26, 2008 - 9:44am — Anonymous
<div
class
=
"content"
>
<?php
print
content_format
(
'field_buildings_img'
,
$field_buildings_img
[
0
]
)
;
?>
<?php
print
check_markup
(
$node
->
content
[
'body'
]
[
'#value'
]
)
?>
CCK
template
theme
Read more
Individual menu classes on theme
June 18, 2008 - 10:36am — Anonymous
/*******individual menu classes******/
function
phptemplate_menu_item
(
$mid
,
$children
=
''
,
$leaf
=
TRUE
,
$extraclass
=
''
)
{
template
template.php
theme
theming
Read more
objectx.org template
June 3, 2008 - 6:47pm — Anonymous
<?php
//var_dump(menu_tree_all_data('secondary-links'));
/*
if($array)
{
foreach ($array as $key => $link)
Object X
template
Read more
Add next link to node
May 25, 2008 - 6:11am — Anonymous
<?php
function
next_node_link
(
$type
,
$object
,
$teaser
=
FALSE
)
{
$links
=
array
(
)
;
if
(
$type
==
'node'
&&
isset
(
$object
->
nid
)
)
{
if
(
!
$teaser
)
{
next link
node
template
Read more
LOLtemplate page.lol
February 11, 2008 - 2:18am — Anonymous
<html>
<head>
<title>
HAI!1! VISIBLE $head_title!1! KTHXBYE!!!
</title>
HAI!!!
VISIBLE $head
VISIBLE $styles
VISIBLE $scripts
KTHXBYE!??
</head>
<body>
<div
id
=
"page"
>
<div
id
=
"header"
>
HAI
lol
template
template engine
Read more
forum-list.tpl.php
December 25, 2007 - 11:38pm — Anonymous
<?php
// $Id: forum-list.tpl.php,v 1.4 2007/08/30 18:58:12 goba Exp $
/**
* @file forum-list.tpl.php
* Default theme implementation to display a list of forums and containers.
*
template
Read more