DrupalBin
Submit Code
About
Recent Posts
Code
7 min 30 sec
ago
Fix for double entries
24 min 18 sec
ago
Code
32 min 58 sec
ago
double entries
44 min 19 sec
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
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
Fix for call template file, pass variables
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
<?php $text = theme('apply_template', $data); return $text; function theme_apply_template($data) { ob_start(); include path_to_theme().'/my-block.tpl.php'; $buffer = ob_get_contents(); ob_end_clean(); return $buffer; } ?>
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.