DrupalBin
Submit Code
About
Recent Posts
Drupal 5 menu
23 min 2 sec
ago
Views 2 get all field names
1 hour 5 min
ago
Code
1 hour 43 min
ago
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
4 hours 34 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 white screen in Drupal 6
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:
*
/** * Implementation of hook_menu(). */ function letters_menu($may_cache) { $items = array(); $items['letter'] = array( 'path' => , 'title' => t('Write a letter to the editor'), 'callback' => 'drupal_get_form', 'callback arguments' => array('letters_form'), 'access' => (user_access('access letters')), 'type' => MENU_CALLBACK ); $items['admin/settings/letters'] = array( 'path' => , 'title' => t('Letters to the Editor'), 'callback' => 'letters_admin', 'access' => user_access('administer letters'), 'type' => MENU_NORMAL_ITEM ); $items['admin/settings/letters/list'] = array( 'path' => , 'title' => t('List'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items['admin/settings/letters/add'] = array( 'path' => , 'title' => t('Add editor'), 'callback' => 'drupal_get_form', 'callback arguments' => array('letters_admin_edit_form', 'add'), 'access' => user_access('administer letters'), 'type' => MENU_LOCAL_TASK ); $items['admin/settings/letters/edit/%newsid'] = array( 'path' => , 'title' => t('Edit editor'), 'callback' => 'drupal_get_form', 'callback arguments' => array('letters_admin_edit_form', 'edit'), 'access' => user_access('administer letters'), 'type' => MENU_CALLBACK ); $items['admin/settings/letters/delete/%newsid'] = array( 'path' => , 'title' => t('Delete menu'), 'callback' => 'drupal_get_form', 'callback arguments' => array('letters_admin_delete_form'), 'access' => user_access('administer letters'), '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.