DrupalBin
Submit Code
About
Recent Posts
Code
27 min 12 sec
ago
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
3 hours 18 min
ago
Code
4 hours 13 min
ago
Code
8 hours 12 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 Why this menu disables my left sidebar?
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 partners_menu($may_cache) { //$items = array(); $access_config = user_access('administer site configuration'); $access_content = user_access('access content'); if ($may_cache) { $items[] = array( 'path' => 'admin/settings/partners', 'title' => t('Partners'), 'description' => t('Adjust the FCBH Partners settings.'), 'callback' => 'partners_admin', 'access' => $access_config, ); $items[] = array( 'path' => 'admin/settings/partners/settings', 'title' => t('Global Settings'), 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items[] = array( 'path' => 'admin/settings/partners/partners', 'title' => t('Partners'), 'type' => MENU_LOCAL_TASK, ); $items[] = array( 'path' => 'admin/settings/partners/messages', 'title' => t('Messaging'), 'type' => MENU_LOCAL_TASK, 'weight' => 1, ); $items[] = array( 'path' => 'members/register', 'title' => t('Member Registration'), 'description' => t('This is the default registration page'), 'callback' => 'partners_public', 'access' => user_access('access content'), 'type' => MENU_CALLBACK ); } return $items; }
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.