This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How do I access this hello world module?

I downloaded this simple hello world example module, and I installed it into my modules folder and enabled it in admin. According to the code, I am supposed to be able to do http://mydrupaldomain/hello and it will run. However, I get the page not found content instead.

What do I need to do to run this simple module?

Cheers!


<?php
/* $Id$ */

/**
* @file
* Very simple DRUPAL module
*/

/**
* Implementation of hook_help().
*/
function hello_world_help($section) {
switch ($section) {
case 'admin/help#hello_world':
$output = '

Hello world help...

';
return $output;
case 'admin/modules#description':
return 'Hello world module description...';
}
}

/**
* Implementation of hook_menu().
*/
function hello_world_menu($may_cache) {
$items = array();

if ($may_cache) {
}
else {
$items[] = array(
'path' => 'hello', // drupal path example.com/?q=hello
'title' => 'Hello world page...', // page title
'callback' => 'hello_world_page', // callback function name
'access' => TRUE, // every user can look at generated page
'type' => MENU_CALLBACK // define type of menu item as callback
);
}

return $items;
}

/**
* Function which generate page (this generate any content - you need only your own code...)
*/
function hello_world_page() {
return '

Hello world!

Restrict user access to Combo Boxes

Hi,

i am about to plan a module for drupal that will help me handling my small boat-club. There are several boats, harbours, captains and customers and of course some people that can arrange all those into bookings. Because of the possibility that there will be more than one people to handle the incoming order from my customers i would like to restrict the access to my boat-nodes. In fact there are 3 boats that are property of the club and up to 5 boats that belong to other people, but that have to be managed with my new module.

will be a new module for google co-op (Custom Search Engine)

i´d like to know if will a module to introduce google co-op in our drupal-site.

thanks

Oskar Calvo.

gsitemap with clean urls disabled

Hi all.
I can't enable clean urls on my web site, so to use gsitemps, I've solved the problem uploading alternatively the following scripts.

The simpler:

     print file_get_contents(
         "http://www.diegobelotti.com/?q=gsitemap"
     );

This one needs a writable file in your site root called gsitemap.xml:

Trying to update CreativeCommons module

Hello,

I have been trying to update the creativecommons module (http://drupal.org/node/17497) . I have updated the forms using the form update module.

Can someone help me in debugging this? Look at the file here : http://pushkar.net/creativecommons.module.txt

Thanks
Regards
Pushkar

category wrapper module broken

The category module ships with a taxonomy wrapper module which is supposed to invisibly maintain the taxonomy tables as categories are added and maintained.

I am getting this error message (It prints 4 times):

user warning: Unknown column 'Object' in 'field list' query: INSERT INTO term_node (nid, tid) VALUES (36, Object) in THIS_IS_MY_WEBSERVER_ROOT/httpdocs/includes/database.mysql.inc on line 120.

The records never get inserted into the taxonomy module.

I assume something went wrong during the wrapper install. Anyone know how to fix this?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions