Solved

Drupal 6 first module

Posted on 2011-03-11
4
260 Views
Last Modified: 2012-05-11
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

0
Comment
Question by:ritelo
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:nidash
ID: 35110753
why is the filename xyz.module.php? there thould be at least 2 files

module_name.info
modulle_name.module

0
 

Author Comment

by:ritelo
ID: 35110797
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?
0
 
LVL 2

Accepted Solution

by:
nidash earned 500 total points
ID: 35110851
yes the filename should just be "onthisdate.mudule" withouh the php at the end.
0
 

Author Closing Comment

by:ritelo
ID: 35110989
Thank you very much. It helped
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question