The hook_menu() got inconsistencies:

$item is used instead of $items, and MENU_CALLBACK_ITEM does not exists in drupal.

this is the correct fix:

<?php

/**
 * Implementation of hook_menu()
 */  
function zendesk_menu() {
  // callback use by zendesk for remote authentication
  $items['services/zendesk'] = array(
    'title' => 'Zendesk remote authentication',
    'page callback' => 'zendesk_remote_authentication',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  // items instead of item. (fix by Sylvain)
  $items['zendesk/redirect'] = array(
    'title' => 'Zendesk redirection',
    'page callback' => 'zendesk_redirect',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/zendesk'] = array(
    'title' => 'Zendesk settings',
    'access arguments' => array('configure zendesk'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('zendesk_configuration_form'),
    'type' => MENU_NORMAL_ITEM,
    'description' => t('Zendesk settings')
  );
  return $items;
}

?>

Comments

twom’s picture

Status: Active » Needs work

The $items problem is fixed. Will remove the inconsistencies for the 1.7 version.

Tom