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
theming
Drupal 6 equivalent of stylesheets-override[]
August 8, 2011 - 7:30pm —
sun
function
phptemplate_preprocess_page
(
&
$vars
)
{
// Override system.css with theme version, but keep its position.
// So much to stylesheets-override[] .info property being needless...
// @see
d6
Drupal 6
DrupalWTF
override
stylesheets
theme
theming
Read more
Fix for Example of overriding the user_login_block form
June 9, 2011 - 2:18am — Anonymous
<?php
// In template.php
/**
* Preprocess function for user_login_block form.
*/
function
mytheme_preprocess_user_login_block
(
&
$vars
)
{
// change the text for the sign in button
$vars
[
'fo
theming
Read more
Fix for trying to add a new variable to my page.tpl.php
May 2, 2011 - 11:39am — Anonymous
//this is inside my template.php file
// removing a superfluous [] fixed it.
function
mytheme_preprocess_page
(
&
$variables
)
{
$variables
[
'bg_img'
]
=
'http://gocompost.localhost/sites/all/themes/jonn
page.tpl.php
theming
Read more
trying to add a new variable to my page.tpl.php
May 2, 2011 - 11:34am — Anonymous
//this is inside my template.php file
function
mytheme_preprocess_page
(
&
$variables
)
{
$variables
[
'bg_img'
]
[
]
=
'http://gocompost.localhost/sites/all/themes/jonny/css/cath.jpg'
;
}
page.tpl.php
theming
dpm and node object error
March 9, 2011 - 11:41am — Anonymous
My code:
function
fashion_preprocess_node
(
&
$variables
)
{
dpm
(
$variables
)
;
}
And the error:
Uncaught exception thrown in session handler.
PDOException: SQLSTATE
[
HY000
]
: General error:
Devel
theming
Read more
Fix for Custom Company Info for Theming
February 18, 2011 - 4:16pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Fix for Custom Company Info for Theming
February 18, 2011 - 4:07pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Custom Company Info for Theming
February 18, 2011 - 4:06pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Fix for www.afrixml.net/greengas page-tpl.php
December 12, 2010 - 11:35pm — Anonymous
<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="
<?php
print
$language
theming
Read more
www.afrixml.net/greengas page-tpl.php
December 12, 2010 - 10:28pm — Anonymous
<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="
<?php
print
$language
theming
Read more
1
2
3
4
5
next ›
last »