DrupalBin
Submit Code
About
Recent Posts
how to add a ahah form element after submit
9 hours 2 min
ago
user_deco add functions
9 hours 12 min
ago
simple version
12 hours 6 min
ago
Fix for D6 path_set_alias
13 hours 2 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
hook_menu_alter
Serious. String. Retardation.
November 10, 2008 - 7:27pm — Anonymous
function
hook_menu_alter
(
&
$callbacks
)
{
foreach
(
$callbacks
as
$key
=>
$value
)
{
$callbacks
[
$key
]
[
'title'
]
=
ucwords
(
$value
[
'title'
]
)
;
}
}
hook_menu_alter
menu
strings
Add new comment
deny access for a specific page to anon users
October 20, 2008 - 7:57pm — Anonymous
function
sandbox_menu_alter
(
&
$callbacks
)
{
$callbacks
[
'node/11'
]
[
'access callback'
]
=
'sandbox_user_check'
;
}
function
sandbox_user_check
(
)
{
global
$user
;
return
(
$user
->
uid
>
0
)
;
}
access control
hook_menu_alter
Add new comment
Callback overrides 5.x -> 6.x
May 31, 2008 - 4:38pm — Anonymous
// what we had in 5.x
function
mymodule_menu
(
$may_cache
)
{
$items
=
array
(
)
;
if
(
!may_cache &&
module_exists
(
'devel'
)
)
{
$items
[
]
=
array
(
6.x
hook_menu
hook_menu_alter
Read more