Hi
i am trying to develop a module. i created the folder named test and created the test.info,test.module,test.install. The module correctly creates new table as i given in test.install. Now the problem is i want to show my module name in the admin menu as views, block..
i tried this code in test.module

function test_menu(){
$items = array();
$items['admin/test'] = array(
'title' => t('Welcome to the test Module'),
'page callback' => 'drupal_get_form',
'page arguments' => array('test_form'),
'access arguments' => array('access test'),
'type' => MENU_CALLBACK,
);
$items['admin/user/userreorder'] = array(
'title' => 'User Reorder',
'description' => 'List, add, and edit users.',
'page callback' => 'user_admin',
'page arguments' => array('list'),
'access arguments' => array('administer users'),

);
return $items;
}
Please tell me is this correct method or not. i used this module to list the users and i want to rearrange them
Please help

thanks in advance
Prajila

Comments

dddave’s picture

Assigned: prajila.v.p » Unassigned
Status: Active » Closed (won't fix)

There is a dedicated forum for module development. Please ask there.

harimohan’s picture

if u are learning module development ,check documentation .

otherwise use user list module