Link to home
Start Free TrialLog in
Avatar of ritelo
ritelo

asked on

Drupal 6 first module

I just created my first module in drupal 6 with the three attached files. My module is not showing up in the module list. Cold someone help??  onthisdate.module.php
//here is the onthisdate.info code:
; $Id$
name = Onthisdate
description = A description of what your module does
core = 6.x
package = Module testing

//here is the onthisdate.admin.inc code


<?php
function onthisdate_admin_settings() {
$form = array();
$form['onthisdate_maxdisp'] = array(
'#type' => 'textfield',
'#title' => t('Maximum number of links'),
'#default_value' => variable_get('onthisdate_maxdisp', 3),
'#size' => 2,
'#maxlenght' => 2,
'#description' => t("The maximum number of links to display in the block."),
'#required' => TRUE,
);
return systen_settings_form($form);
}

Open in new window

Avatar of nidash
nidash

why is the filename xyz.module.php? there thould be at least 2 files

module_name.info
modulle_name.module

Avatar of ritelo

ASKER

module_name.module is a php file i think. That's why it has the .php My module name is onthisdate. I submitted onthisdate.info, and onthisdate.mudule.php Should i change something?
ASKER CERTIFIED SOLUTION
Avatar of nidash
nidash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ritelo

ASKER

Thank you very much. It helped