DrupalBin
Submit Code
About
Recent Posts
Code
1 min 5 sec
ago
admin settings not saving
1 hour 27 min
ago
Code
2 hours 10 min
ago
Code
2 hours 26 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 my implement of hool_menu()
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 auto_expire_new_menu() { $items = array(); $items['admin/settings/auto_expire'] = array( 'title' => 'Auto Expire Settings', 'page callback' => 'auto_expire_new_settings_page', 'access arguments' => array('aminister site configuration'), 'type' => MENU_NORMAL_ITEM, ); $items['auto_expire_run'] = array( 'title' => 'Auto Expire Manual Fire', 'page callback' => 'auto_expire_new_run', 'access arguments' => TRUE, '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.