DrupalBin
Submit Code
About
Recent Posts
Code
Code
Code
Code
Code
Fix for omni
omni
Code
Fix for preprocessnode
preprocessnode
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
Panels
simpletest
test
theme
user
views
more tags
Home
menu
Adding tab
November 16, 2009 - 8:05am — Anonymous
function
uc_deliverynote_menu_alter
(
&
$items
)
{
$items
[
'admin/store/orders/%uc_order/deliverynote'
]
=
array
(
'page callback'
=
>
'uc_deliverynote_report'
,
'access arguments'
=
>
array
(
'view al
menu
tab
ubercart
Read more
Hide title for pages in the primary links menu
August 25, 2009 - 11:34am —
mongolito404
/**
* Hide the title of the page if there is an entry for its path in the primary-menu (at any depth).
* Usefull when primary links use huge font, to avoid repeating the same information on screen.
*
menu
primary-links
theme
Read more
Fix for Fix for Creating a simple menu entry
July 12, 2009 - 3:29pm —
litwol
/*
* I'm trying to create a menu item that links to 'author/<username>', where username is the name of the logged in user.
* The menu has no callback associated, it's just a simple menu item, poin
hook_menu
menu
Read more
Fix for Creating a simple menu entry
July 12, 2009 - 3:21pm — Anonymous
/*
* I'm trying to create a menu item that links to 'author/<username>', where username is the name of the logged in user.
* The menu has no callback associated, it's just a simple menu item, poin
hook_menu
menu
Read more
Creating a simple menu entry
July 12, 2009 - 2:08pm — Anonymous
/*
* I'm trying to create a menu item that links to 'author/<username>', where username is the name of the logged in user.
* The menu has no callback associated, it's just a simple menu item, poin
hook_menu
menu
Read more
Dynamically changing menu items on !$may_cache
May 29, 2009 - 9:28am — Anonymous
foreach
(
taxonomy_get_vocabularies
(
)
as
$vocabulary
)
{
if
(
_taxonomy_navigation_is_supported
(
$vocabulary
)
&&
variable_get
(
'taxonomy_navigation_show_'
.
$vocabulary
-
>
vid
,
0
)
)
{
menu
pathauto
taxonomy
Read more
search block default value
May 19, 2009 - 4:50am — Anonymous
function
YOUR_MODULE_form_alter
(
&
$form
,
&
$form_state
,
$form_id
)
{
if
(
$form_id
==
'search_block_form'
)
{
$item
=
menu_get_item
(
)
;
if
(
$item
[
'map'
]
[
0
]
==
'search'
)
{
block
form
menu
search
Read more
bones_menu()
March 25, 2009 - 9:13pm — Anonymous
/**
* Implementation of hook_menu().
*/
function
bones_menu
(
)
{
$items
[
'admin/build/bones'
]
=
array
(
'title'
=
>
'Bones'
,
bones
hook_menu
menu
module
Read more
custom menutrail block
March 17, 2009 - 2:16pm — Anonymous
function
withington_tweaks_menutrailsub
(
)
{
$links
= menutrails_primary_links
(
2
)
;
$pid
=
variable_get
(
'menu_primary_menu'
, 0
)
;
$i
=
_menu_get_active_trail_in_submenu
(
$pid
)
;
block
menu
Read more
customize menus by theme override
March 16, 2009 - 11:53am — Anonymous
This code snippet I took from internet services 2
theme
, they use it to change primary links
now I want to customize my menu in the same way
customize
menu
override
theme
Read more
1
2
3
4
5
6
next ›
last »