Simple Hello World Module for Drupal 6

Submitted by zoro on Mon, 06/08/2009 - 16:32

This is a small and simple "Hello World!" module for quickstarters who uses Drupal 6x series. We need just one directory and two files:

  • modules/simple_hello_world/
  • modules/simple_hello_world/simple_hello_world.info
  • modules/simple_hello_world/simple_hello_world.module

modules/simple_hello_world/simple_hello_world.info

; $Id$
name = Simple Hello World
description = Description of Simple Hello World module
core = 6.x

modules/simple_hello_world/simple_hello_world.module

<?php

function simple_hello_world_menu(){
  $items = array();

  $items['simple-hello-world'] = array(
    'title' => t('Simple Hello World!'),
    'page callback' => 'simple_hello_world_page',
    'page arguments' => array(1),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
  );

  return $items;
}

function simple_hello_world_page($name) {

return "Hello World!";
}

Urls to call your module:
example.com/simple-hello-world
example.com/?q=simple-hello-world

Submitted by Anonymous (not verified) on Sun, 07/19/2009 - 05:10

Permalink

`abuse-6.x-1.x-dev.tar.gz'
`account_reminder-6.x-1.1.tar.gz'
`ad-6.x-1.x-dev.tar.gz'
`addresses-6.x-1.0-alpha3.tar.gz'
`addthis-6.x-2.5.tar.gz'
`addthis-6.x-2.7.tar.gz'
`advanced_forum-6.x-1.0-alpha13.tar.gz'
`advanced_forum-6.x-1.1.tar.gz'
`apply_for_role-6.x-1.7.tar.gz'
`apply_for_role-6.x-1.8.tar.gz'
`author_pane-6.x-1.1.tar.gz'
`autoload-6.x-1.3.tar.gz'
`bitcache-6.x-1.0-alpha2.tar.gz'
`buymeabeer-6.x-1.0.tar.gz'
`cache_disable-6.x-1.0.tar.gz'
`calendar-6.x-2.0-rc4.tar.gz'
`captcha-6.x-1.0-rc2.tar.gz'
`cck-6.x-2.1.tar.gz'
`cck-6.x-2.4.tar.gz'
`chatroom-6.x-1.0-beta2.tar.gz'
`comment_notify-6.x-1.1.tar.gz'
`comment_notify-6.x-1.2.tar.gz'
`content_profile-6.x-1.0-beta2.tar.gz'
`content_unpublish-6.x-1.x-dev.tar.gz'
`country_code-6.x-1.x-dev.tar.gz'
`date-6.x-2.0-rc4.tar.gz'
`ddblock-6.x-1.0-rc2.tar.gz'
`ddblock-6.x-1.0-rc6.tar.gz'
`diaporama-6.x-1.0.tar.gz'
`diaporama-6.x-1.1.tar.gz'
`directory-6.x-1.0-alpha1.tar.gz'
`epublish-6.x-1.0.tar.gz'
`event-6.x-2.x-dev.tar.gz'
`favorite_nodes-6.x-1.x-dev.tar.gz'
`filefield-6.x-3.0-alpha5.tar.gz'
`filefield-6.x-3.1.tar.gz'
`filterbynodetype-6.x-1.2.tar.gz'
`fivestar-6.x-1.13.tar.gz'
`fivestar-6.x-1.17.tar.gz'
`flag_content-6.x-1.x-dev.tar.gz'
`flashnode-6.x-3.0.tar.gz'
`flashnode-6.x-3.1.tar.gz'
`flashvideo-6.x-1.4-beta6.tar.gz'
`flashvideo-6.x-1.4.tar.gz'
`forumthread-6.x-1.1.tar.gz'
`forward-6.x-1.x-dev.tar.gz'
`friendlist-6.x-1.x-dev.tar.gz'
`glossary-6.x-1.6.tar.gz'
`gmap-6.x-1.0-rc2.tar.gz'
`gmapfield-6.x-1.x-dev.tar.gz'
`guestbook-6.x-1.1.tar.gz'
`heartbeat-6.x-2.1.tar.gz'
`i18n-6.x-1.0-beta4.tar.gz'
`i18n-6.x-1.1.tar.gz'
`image-6.x-1.0-alpha3.tar.gz'
`image-6.x-1.0-alpha4.tar.gz'
`imageapi-6.x-1.0.tar.gz'
`imagecache-6.x-2.0-beta2.tar.gz'
`imagefield-6.x-3.0-alpha2.tar.gz'
`image_fupload-6.x-1.1-rc1.tar.gz'
`image_fupload-6.x-3.0-rc2.tar.gz'
`imcontrol-6.x-1.0.tar.gz'
`instant_search-6.x-1.x-dev.tar.gz'
`invite-6.x-2.x-dev.tar.gz'
`jquery_update-6.x-1.1.tar.gz'
`languageicons-6.x-1.0.tar.gz'
`languageicons-6.x-1.1.tar.gz'
`location-6.x-3.0-rc2.tar.gz'
`magic_tabs-6.x-1.0.tar.gz'
`mass_contact-6.x-1.0-beta2.tar.gz'
`nice_menus-6.x-1.2.tar.gz'
`node2node-6.x-1.2.tar.gz'
`node_gallery-6.x-1.0-alpha2.tar.gz'
`nodehierarchy-6.x-1.1.tar.gz'
`node_images-6.x-2.1.tar.gz'
`node_images-6.x-2.x-dev.tar.gz'
`node_import-6.x-1.x-dev.tar.gz'
`og-6.x-1.0-rc9.tar.gz'
`og-6.x-1.3.tar.gz'
`onthisday-6.x-1.0.tar.gz'
`onthisday-6.x-1.x-dev.tar.gz'
`pathauto-6.x-1.1.tar.gz'
`photos-6.x-2.6-beta3.tar.gz'
`print-6.x-1.0.tar.gz'
`print-6.x-1.7.tar.gz'
`question-6.x-1.x-dev.tar.gz'
`quicktabs-6.x-1.0-beta1.tar.gz'
`quiz-6.x-2.0.tar.gz'
`quiz-6.x-3.0.tar.gz'
`rdf-6.x-1.0-alpha3.tar.gz'
`reg_with_pic-6.x-1.0.tar.gz'
`relevant_content-6.x-1.4.tar.gz'
`rules-6.x-1.0-beta3.tar.gz'
`scheduler-6.x-1.3.tar.gz'
`search404-6.x-1.7.tar.gz'
`service_links-6.x-1.0.tar.gz'
`shoutbox-6.x-1.0.tar.gz'
`simplemenu-6.x-1.0.tar.gz'
`simpleviews-6.x-1.x-dev.tar.gz'
`tagadelic-6.x-1.0.tar.gz'
`tagadelic-6.x-1.2.tar.gz'
`tagtool-6.x-1.0.tar.gz'
`taxonomy_manager-6.x-1.1.tar.gz'
`tellafriend_node-6.x-1.2.tar.gz'
`token-6.x-1.11.tar.gz'
`token-6.x-1.12.tar.gz'
`translation_tabs-6.x-1.x-dev.tar.gz'
`uploadpath-6.x-1.0.tar.gz'
`userpoints-6.x-1.0.tar.gz'
`userpoints-6.x-1.x-dev.tar.gz'
`userpoints_contrib-6.x-1.x-dev.tar.gz'
`user_relationships-6.x-1.0-beta9.tar.gz'
`video_filter-6.x-2.4.tar.gz'
`video_upload-6.x-1.x-dev.tar.gz'
`view_own-6.x-1.1.tar.gz'
`views-6.x-2.1.tar.gz'
`views-6.x-2.6.tar.gz'
`views_cloud-6.x-1.0.tar.gz'
`vocabindex-6.x-2.0-rc2.tar.gz'
`votingapi-6.x-2.0-rc1.tar.gz'
`votingapi-6.x-2.1.tar.gz'
`watermark-6.x-1.x-dev.tar.gz'
`weblinks-6.x-1.1.tar.gz'
`weblinks-6.x-1.6.tar.gz'
`wishlist-6.x-2.2.tar.gz'
`worldclock-6.x-1.3.tar.gz'
`wunderground-6.x-1.0.tar.gz'
`wunderground-6.x-2.0.tar.gz'
`wysiwyg-6.x-0.4.tar.gz'
`wysiwyg-6.x-2.0.tar.gz'
`wysiwyg_filter-6.x-1.0.tar.gz'
`wysiwyg_filter-6.x-1.2.tar.gz'
`xmlsitemap-6.x-1.0-rc1.tar.gz'
`zoomify-6.x-1.0.tar.gz'

Submitted by Anonymous (not verified) on Fri, 09/25/2009 - 09:35

Permalink

List of all modules for Drupal 4.7, 5x and 6x
http://ftp.drupal.org/files/projects/

Add new comment