For some very odd reason that I cannot at all fathom, when I install my module "Contacts", I get "Contact" and "Contacts xxx" showing up in the Create Content menu. I put the xxx in there to help me track down what's going on. Any ideas? I'm using Drupal 5.1 and I've created another module that works just fine.
<?php
// $Id: contacts.module,v 1.186 2006/03/27 18:02:48 killes Exp $
/**
* @file
* Enables users to submit contacts.
*/
/**
* Implementation of hook_node_info().
*/
function contacts_node_info() {
return array(
'contacts' => array(
'name' => t('Contacts xxx'),
'module' => 'contacts',
'description' => t("Contacts are used for everyone from employees to client company contacts."),
)
);
}
/**
* Implementation of hook_perm().
*/
function contacts_perm() {
return array('create contacts', 'edit contacts');
}
/**
* Implementation of hook_access().
*/
function contacts_access($op, $node) {
global $user;
if ($op == 'create') {
return user_access('create contacts');
}
if ($op == 'update' || $op == 'delete') {
if (user_access('edit contacts') && ($user->uid == $node->uid)) {
return TRUE;
}
}
}
/**
* Implementation of hook_menu().
*/
function contacts_menu($may_cache) {
$items = array();
// Set Admin Options
$items[] = array(