DrupalBin
Submit Code
About
Recent Posts
Code
32 min 49 sec
ago
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
3 hours 23 min
ago
Code
4 hours 19 min
ago
Code
8 hours 17 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 hook_menu implementation which throws errors
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 comment_revisions_menu() { $items = array(); $items['admin/settings/commentrevisions'] = array( 'title' => 'GB Comment Revisions settings', 'description' => 'Settings page for the GB Comment Revisions Module', 'page callback' => 'drupal_get_form', 'page arguments' => array('comment_revisions_admin'), 'access arguments' => array('administer GB Comment Revisions'), 'type' => MENU_NORMAL_ITEM ); /* If permission is "view revisions" */ $items['commentrevisions/%'] = array( 'title' => 'Revisions', 'page callback' => 'comment_revisions_overview', 'page arguments' => array(1), 'access callback' => '_comment_revisions_checkaccess', 'access arguments' => array('view revisions', 'view own revisions'), 'weight' => 2, 'type' => MENU_CALLBACK, ); $items['commentrevision/%/revert'] = array( 'title' => 'Revert Revision', 'page callback' => 'comment_revisions_revert', 'page arguments' => array(1), 'access callback' => '_comment_revisions_checkaccess', 'access arguments' => array('revert revisions'), 'type' => MENU_CALLBACK ); $items['commentrevision/%/delete'] = array( 'title' => 'Delete Revision', 'page callback' => 'comment_revisions_delete', 'page arguments' => array(1), 'access callback' => '_comment_revisions_checkaccess', 'access arguments' => array('delete revisions'), '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.