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
hook_menu
Can't get sustainability/report/download/%hash to load it's callback, returns sustainability/report/download's instead
November 8, 2011 - 1:10pm —
seanr
/**
* All below is for the secure report download.
*/
function
crown_sustainability_menu
(
)
{
$items
[
'admin/settings/sustainability'
]
=
array
(
'title'
=
>
'Sustainability Report'
,
'des
debug menu
hook_menu
Read more
Refactoring perms arrays in hook_menu
September 15, 2010 - 8:31am — Anonymous
<?php
// Compare two versions
$admin_access
=
array
(
'administer filters'
)
;
$items
[
'admin/settings/filters'
]
=
array
(
'page callback'
=
>
'drupal_get_form'
,
'access arguments'
=
>
arra
hook_menu
Read more
Fix for Example of using 'title callback' and 'title arguments' in Drupal 6
February 26, 2010 - 2:41am — Anonymous
/**
* Implementation of hook_menu().
*/
function
cck_gallery_menu
(
)
{
$items
[
'cck-galleries/%user'
]
=
array
(
//define the function that generates the page title
'title callback'
=
>
'
Drupal 6
hook_menu
title arguments
title callback
Read more
Fix for Code
January 14, 2010 - 5:17pm — Anonymous
<?php
function
swingnet_utils_menu
(
)
{
$items
=
array
(
)
;
$items
[
'perfil/edit'
]
=
array
(
'title'
=
>
t
(
'Editar Perfil'
)
,
'description'
=
>
t
(
'Editar Perfil'
)
,
'page callback'
hook_menu
Read more
Code
January 14, 2010 - 4:27pm — Anonymous
<?php
global
$user
;
$query
=
db_query
(
"select {node.nid} as nid from {node} where {node.uid} =%d and {node.type} = 'perfil'"
,
$user
-
>
uid
)
;
$dado
=
db_fetch_array
(
$query
)
;
function
swing
hook_menu
Read more
Fix for Callback overrides 5.x -> 6.x
October 13, 2009 - 11:22pm — Anonymous
// what we had in 5.x
function
mymodule_menu
(
$may_cache
)
{
$items
=
array
(
)
;
if
(
!
may_cache
&&
module_exists
(
'devel'
)
)
{
$items
[
]
=
array
(
'path'
=
>
'devel/cache/cl
6.x
hook_menu
hook_menu_alter
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
cant catch the alias of the node
June 17, 2009 - 6:11am — Anonymous
function
raphael_receipts_menu
(
)
{
$items
=
array
(
)
;
$items
[
'receipts/%'
]
=
array
(
'title'
=
>
'Raphael Restaurant Receipts'
,
//'title callback' => 'raphael_receipts_title',
'ti
hook_menu
Read more
1
2
3
next ›
last »