DrupalBin
Submit Code
About
Recent Posts
What is this?
display suite field group
Code
Code
Code
Code
Fix for UC Node Checkout - Base Product Title into Token
Code
Import a content type from a file.
Alteration to Trying to alter contact form to allow pre-selecting of cid
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
test
theme
user
views
more tags
Home
template.php
Trying to override theme_menu_item_link
August 13, 2010 - 3:51pm —
75th
<?php
function
phptemplate_menu_item_link
(
$link
)
{
if
(
empty
(
$link
[
'localized_options'
]
)
)
{
$link
[
'localized_options'
]
=
array
(
'html'
=
>
TRUE
)
;
}
$thetitle
=
'<span>'
;
$thetitle
.=
template.php
theme
Read more
1 attachment
Fix for Trying to override theme_menu_item_link
August 13, 2010 - 3:11pm — Anonymous
<?php
function
phptemplate_menu_item_link
(
$link
)
{
if
(
empty
(
$link
[
'localized_options'
]
)
)
{
$link
[
'localized_options'
]
=
array
(
'html'
=
>
TRUE
)
;
}
$thetitle
=
'<span>'
;
$thetitle
.=
template.php
theme
Read more
Trying to override theme_menu_item_link
August 13, 2010 - 3:07pm — Anonymous
<?php
function
phptemplate_menu_item_link
(
$link
)
{
if
(
empty
(
$link
[
'localized_options'
]
)
)
{
$link
[
'localized_options'
]
=
array
(
)
;
}
$thetitle
=
'<span>'
;
$thetitle
.=
$link
[
'titl
template.php
theme
Read more
Fix for Different body class for each page
March 21, 2010 - 9:42am — Anonymous
/* In template.php: */
function YOURTHEME_preprocess_page(&$vars) {
$vars['body_bg_class'] = arg(0);
}
/* In page.tpl.php */
<body class="
<?php
print
$body_bg_class
;
?>
">
css
template.php
theming
Different body class for each page
March 21, 2010 - 9:32am — Anonymous
/* In template.php: */
function YOURTHEME_preprocess_page(&$vars) {
$vars['body_bg_class'] = arg(0);
}
/* In page.tpl.php */
<body class="
<?php
print
$body_bg_class
;
?>
">
css
template.php
theming
Fix for Theme links - print descriptions of primary menu items
November 15, 2009 - 11:06am — Anonymous
<?php
/**
* Return a themed set of links.
* An override of theme_links()
* Modified to use simple text styling instead of HTML & CSS
*
* @see theme_links
*/
function
phptemplate_links
(
$links
primary links
template.php
Read more
Fix for Add JavaScript to only one node
October 15, 2009 - 8:26am — Anonymous
jquery
template.php
theme
Fix for in_array problem
May 29, 2009 - 3:43pm — Anonymous
function
security_list_term_voc
(
$vid
)
{
$items
=
array
(
)
;
$terms
=
taxonomy_get_tree
(
$vid
)
;
foreach
(
$terms
as
$term
)
{
$items
[
]
=
$term
-
>
name
;
}
return
$items
;
}
template.php
Read more
in_array problem
May 29, 2009 - 3:33pm — Anonymous
function
security_list_term_voc
(
$vid
)
{
$items
=
array
(
)
;
$terms
=
taxonomy_get_tree
(
$vid
)
;
foreach
(
$terms
as
$term
)
{
template.php
Read more
phptemplate css code
April 6, 2009 - 11:43am — Anonymous
function
_phptemplate_variables
(
$hook
,
$vars
=
array
(
)
)
{
switch
(
$hook
)
{
case
'page'
:
$css
=
drupal_add_css
(
'sites/all/themes/madebynikki/cmspros.css'
,
'theme'
)
;
5.x
drupal
template.php
theming
Read more
1
2
3
4
next ›
last »