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

Hello Worst in first Page

Hello,

I try to learn drupal module developpment. I want to make an "hello world" module. It's ok with block and ona page but only in a path. But i can't make it working on the first page. any help would be welcome.

thank you

/**
* Display help and module information
* @param section which section of the site we're displaying help
* @return help text for section
*/
function mfm_help($section) {
switch ($section) {
case 'admin/modules#description':
$output = t("This is My First Module Test. Base for an empty begenning. Output Hello World.)");
case 'admin/settings/mfm':
return t("You can set here the value for the My first Module");

break;
}

return $output;
}

/**
* Valid permissions for this module
* @return array An array of valid permissions for the onthisdate module
*/
function mfm_perm() {
return array('access content','admin mfm');
} // function onthisdate_perm()

/**
* Generate HTML for the mfm block
* @param $op What kind of information to retrieve about the block or blocks. Possible values:
* 'list': A list of all blocks defined by the module.
* 'configure': A configuration form.
* 'save': Save the configuration options.
* 'view': Information about a particular block.
* @param $delta Which block to return (not applicable if $op is 'list').
* @param $edit If $op is 'save', the submitted form data from the configuration form.

Updated aggregator.module for Drupal v4.5.x (Please Test)

All,

I have made some changes to the aggregator.module so that news feed items expire at a configurable time. I have it working in two places and need some folks to test it out.

The code can be found at http://www.jasonn.com/aggregatorx_released

I would like to commit this to the v4.5.x and v4.6.x core once tested and approved.

hide a menu, without restricting the permissions on it

HI I want to hide the register menu item of the user.module through a different module:

Specifically I want to hide user/register:

How to move the "/admin" tree to a different location

I'm hosting a couple of Drupal sites with an ISP that virtual hosts with Apache 1.3, and uses a configuration where any URL for a domain that starts with /admin gets shunted to their configuration interface long before Drupal will see it. This is making it a little hard to configure Drupal.

picture/avatar conflicts with poll node layout

I have upgraded from 4.4.1 to 4.5.2 and my theme from an old xtemplate design to a variation of the pushbutton xtemplate design. I am now having problems with the black bar that counts votes being offset and displayed below the avatar/picture. The gray bar runs behind the picture/avatar, but the black bar is placed below it. This is an issue because the black bar displaying the votes for option 1 appears to be displaying the results of option 2. I did not change the xtemplate engine or .xtmpl file to create this problem, nor have I edied the poll.module file.

Captcha module patch, to support those with textish browsers

This is a patch I made for the captcha module.

Since the captcha can only be read using graphical browsers, I thought of this idea to enable users with textish browsers to read the captcha code too.

It's not secure though.
Since the captcha code gets printed in a HTML tag (that's how textish browsers can read it), a script can read the code and bypass your captcha protection.
I don't recommend applying the patch if you are going to use captcha in anything other than fighting spam comments :).

- Amr

Pages

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