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
primary links
Fix for add extra spans to the primary menu links
April 1, 2011 - 10:21am — Anonymous
// a preprocess function to highjack primary links
function
phptemplate_preprocess_page
(
&
$vars
)
{
// add some extra spans to the primary menu links
if
(
isset
(
$vars
[
'primary_links'
]
)
)
{
$va
image replacement
primary links
Read more
Fix for Add classes to links in primary links menu expanded
March 18, 2011 - 10:46am — Anonymous
<?php
print
theme
(
'links'
,
menu_tree
(
$menu_name
=
'primary-links'
)
,
array
(
whatever
)
)
;
?>
add classes
menu expanded
primary links
Add classes to links in primary links menu expanded
March 18, 2011 - 10:30am — Anonymous
<?php
print
menu_tree
(
$menu_name
=
'primary-links'
)
;
?>
add classes
menu expanded
primary links
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
add extra spans to the primary menu links
September 11, 2009 - 9:35am — Anonymous
// a preprocess function to highjack primary links
function
phptemplate_preprocess_page
(
&
$vars
)
{
// add some extra spans to the primary menu links
if
(
isset
(
$vars
[
'primary_links'
]
)
)
{
$va
image replacement
primary links
Read more
Theme links - print descriptions of primary menu items
March 19, 2009 - 1:39pm — 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
*/
primary links
template.php
Read more
Code
January 27, 2009 - 11:30am — Anonymous
<?php
function
adamfrost_menu_item
(
$link
,
$has_children
,
$menu
=
''
,
$in_active_trail
=
FALSE
,
$extra_class
=
NULL
)
{
primary links
Read more