DrupalBin
Submit Code
About
Recent Posts
TwitterFeed for D4D review
text
rewrite
Module to overrule the save settings of the "new node" form
Code
apidoc
Empty DateTime Object
Fix for listcars_manufacturer.module
listcars_manufacturer.info
listcars_manufacturer.module
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
theme
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
theme registery alter
August 3, 2010 - 8:10pm —
auzigog
function
ctcd_theme_registry_alter
(
&
$theme_registry
)
{
///dsm($theme_registry);
dsm
(
'here in theme_registry_alter'
)
;
if
(
isset
(
$theme_registry
[
'table'
]
)
)
{
$theme_registry
[
'table'
]
[
'funct
theme
Read more
Fix for Twitter-like paging
July 15, 2010 - 8:12am — Anonymous
function
joblist_views_mini_pager
(
$tags
=
array
(
)
,
$limit
= 10,
$element
= 0,
$parameters
=
array
(
)
,
$quantity
= 9
)
{
global
$pager_page_array
,
$pager_total
;
// Calculate various markers withi
pager
theme
views
Read more
use a CCK field to switch node templates
April 30, 2010 - 8:58am — Anonymous
// ----------------------------- node templates
// $vars['template_files'] holds an array of template suggestions,
// from most generic to most specific.
// Here we add our own suggestions
CCK
template
theme
Read more
Them snippet causing problems with displaying a gmap on the same page
April 6, 2010 - 4:58am — Anonymous
function
anglerschannel_preprocess_page
(
&
$vars
)
{
if
(
arg
(
2
)
!
=
'edit'
&&
arg
(
1
)
!
=
'add'
)
{
$vars
[
'template_files'
]
[
]
=
"page-node-"
.
gmap
theme
Read more
Twitter-like paging
March 29, 2010 - 8:01pm — Anonymous
function
joblist_views_mini_pager
(
$tags
=
array
(
)
,
$limit
= 10,
$element
= 0,
$parameters
=
array
(
)
,
$quantity
= 9
)
{
global
$pager_page_array
,
$pager_total
;
// Calculate various markers withi
pager
theme
views
Read more
theme_pager
March 9, 2010 - 12:15pm — Anonymous
/**
* Format a query pager.
*
* Menu callbacks that display paged query results should call theme('pager') to
* retrieve a pager control so that users can view other results.
* Format a list
function
pager
theme
Read more
add span wrapper to primary links
February 8, 2010 - 3:57am — Anonymous
<?php
function
overeasy_theme
(
&
$existing
,
$type
,
$theme
,
$path
)
{
$hooks
= genesis_theme
(
$existing
,
$type
,
$theme
,
$path
)
;
$hooks
[
'primary_links'
]
=
array
(
'arguments'
=
>
array
(
'links'
=
>
theme
Read more
1
2
3
4
5
6
7
8
next ›
last »