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
phptemplate
Loading a css && js to front-page
April 17, 2009 - 8:09am — Anonymous
function
phptemplate_preprocess_page
(
&
$vars
,
$hook
)
{
// our front-page-tabs css && js
if
(
$vars
[
'is_front'
]
==
1
)
{
//dpm(path_to_theme().'/scripts/front-page-tabs.js');
phptemplate
preprocess_page
theme
Read more
Overriding template suggestions
March 20, 2009 - 5:52am — Anonymous
function
phptemplate_preprocess_page
(
&
$vars
)
{
// Content switching
$vars
[
'template_files'
]
[
]
=
'page-'
.
$node
-
>
type
;
}
drupal6
phptemplate
template
theme
theming
PHPTemplate Callback
January 31, 2009 - 6:28pm — Anonymous
<?php
function
modelxonline_node_form
(
$form
)
{
if
(
file_exists
(
path_to_theme
(
)
.
'/'
.
$form
[
'type'
]
[
'#value'
]
.
'_form.tpl.php'
)
)
{
node_form
phptemplate
Read more
Get $vars keys
February 25, 2008 - 3:52pm — Anonymous
<?php
$vars
=
get_defined_vars
(
)
;
foreach
(
$vars
as
$key
=>
$var
)
{
print
$key
;
}
?>
phptemplate
vars