Solved

Drupal 6 first module

Posted on 2011-03-11
4
255 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now