DrupalBin
Submit Code
About
Recent Posts
Code
19 min 52 sec
ago
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
3 hours 10 min
ago
Code
4 hours 6 min
ago
Code
8 hours 4 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
Fix for Implementation of hook_menu question
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
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>'; }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.