Solved

Drupal 6 first module

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DotNetNuke Redirect 3 170
Clean up unnecessary space 4 333
Secure Recordings 7 44
Twitter: Any way to list my retweeter who I do not follow? 6 93
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 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 video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

13 Experts available now in Live!

Get 1:1 Help Now