Here're the steps I did to create an mudule:
- create a directory
groups
undersites/all/modules
- in the above directory
groups
, create two filesgroups.module
andgroups.info
The content of groups.info
:
; $Id: groups.info,v 1.3 2006/11/21 20:55:36 dries Exp $
name = groups
description = Test Groups Listings.
package = "test groups"
version = "5.10"
project = "ed_groups"
datestamp = "1218672307"
The content of groups.module
:
<?php
function groups_menu($may_cache)
{
$items = array();
$items[] = array(
'path' => 'test_menu',
'type' => MENU_CALLBACK,
'callback' => 'groups_list',
'title' => t('All Group Listing')
);
}
function groups_list()
{
return 'helloworld';
}
I got an oops(404) page when visiting site.com/test_menu
Can you spot what's wrong above?