Solved

Drupal 6 first module

Posted on 2011-03-11
4
261 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Make sharepoint repository offline copy 2 191
Correct the grammar  for the below  below paragraph 3 158
hard drive contents erase software 8 105
want to exclude Folder 3 89
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 …
Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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