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

How to access user profiles?

Hi,
I had made the user profile accessible to authenticated users, other than the administrator, by changing the access control in the admministrator settings.

Where is the change brought about when I select the option to allow authenticated or anonymous users to access a module. Is the change made in the database or in any .inc file?

how to use hook_link_alter

I may be being a bit thick here, but how do I use "hook_link_alter"?

I've looked at the API reference but don't seem to have clicked how it works....
Anybody got a working example?
Any tips would be helpful:)

How to test if user is currently on Home Page in PHP?

Hi,
total newbie. Running first drupal site. learning lots, enjoying it...mostly. I have a snippet on the front page that I only want to display when the user is on the front page (ie. first load of site, or click on 'home'). How do i do that?

Is there an ishome() kind of function?
Cheers,
Dan

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.

Pages

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