menu

hook_menu implementation which throws errors

  1. function comment_revisions_menu() {
  2.   $items = array();
  3.  
  4.     $items['admin/settings/commentrevisions'] = array(
  5.       'title' => 'GB Comment Revisions settings',

Implementation of hook_menu question

  1. function bd_menu() {
  2.   $items['bd/foo'] = array(
  3.     'title' => 'Foo',
  4.     'page callback' => 'bd_foo',
  5.     'access arguments' => array('view birthdays'),
  6.     'type' => MENU_CALLBACK,
  7.   );

Can't map tab to function callback

  1. $items['admin/settings/gmapper/add'] = array(
  2.                 'title' => t('Add Map'),
  3.                 'description' => t('Add An Empty Map'),
  4.                 'callback' => 'add_empty_map',

IE Destroyer hook_menu()

  1. /**
  2.  * Implementation of hook_menu()
  3.  */
  4. function iedestroyer_menu($may_cache) {
  5.   if ($may_cache == TRUE) {
  6.     return array(
  7.       'path' => 'admin/settings/iedestroyer',

%crmapi_section doesn't get passed to form function

  1. function crmapi_menu() {
  2.   $items = array();
  3.   $items['crmapi/%crmapi_section'] = array(
  4.     'title callback' => 'crmapi_title',
  5.     'title arguments' => array(1),

white screen in Drupal 6

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function letters_menu($may_cache) {
  5.   $items = array();
  6.   $items['letter'] = array(
  7.     'path' => ,

this is my user_queue_member.module file,

  1. <?php # vim: set filetype=php expandtab tabstop=2 shiftwidth=2 autoindent smartindent:
  2.  
  3. /*
  4.  

Why this menu disables my left sidebar?

  1. function partners_menu($may_cache) {
  2.         //$items = array();
  3.         $access_config = user_access('administer site configuration');
  4.         $access_content = user_access('access content');
  5.         if ($may_cache) {

adding menu item under my account doesnt work

  1. $items['user/%user/xxx'] = array(
  2. 'title' => 'feffeef',
  3. 'page callback' => 'gallery_overview_page',
  4. 'page arguments' => array(1),
  5. 'access arguments' => array('administer image gallery'),

Doesn't rename menu items

  1. function aic_menu($may_cache) {
  2.   $items = array();
  3.  
  4.   if ($may_cache) {
  5.    
  6.   }
  7.   else {
  8.    
  9.     // Rename the user/view and user/edit tabs.  I hope this works. :-)
Syndicate content