DrupalBin
Submit Code
About
Recent Posts
Code
16 min 37 sec
ago
Fix for Code
1 hour 30 min
ago
Code
1 hour 30 min
ago
example array
1 hour 42 min
ago
more
Tags
CCK
fapi
javascript
jquery
menu
module
Panels
simpletest
template.php
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
Implementation of hook_menu question
View
Download
Fix
June 29, 2008 - 7:09am — Anonymous
function
bd_menu
(
)
{
$items
[
'bd/foo'
]
=
array
(
'title'
=>
'Foo'
,
'page callback'
=>
'bd_foo'
,
'access arguments'
=>
array
(
'view birthdays'
)
,
'type'
=>
MENU_CALLBACK
,
)
;
return
$items
;
}
function
bd_foo
(
)
{
return
'<p>'
. t
(
'The quick brown fox jumps over the lazy dog.'
)
.
'</p>'
;
}
menu