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

hook_view and theme

The module I am working on will provide a new node type that will be rendered in a certain way.

Now, I have my hook_view function ready with returning a structured content array, but I also want to pass this content to a custom theme fuction. How should I implement this?

- Should topic_view call theme_topic and return rendered html content?
- Should I just implement a theme_?? function and rely on it being appropriately called when a node of type "topic" should get displayed (and what should "??" be)?

Or is it something else?

wiki module

Is it possible to have a link to the last most efficient wiki module for drupal 5???

module name minimum length?

Can anyone confirm that Drupal 5 module names must be 4 characters in length or greater?

We're re-writing our asset management tool, ERM and using the 3 character name now results in no module being detected by drupals module installer...

Bad:

; $Id$
name = erm
description = "ERM Core Components"
package = Resource Management

Good:

; $Id$
name = ermx
description = "ERM Core Components"
package = Resource Management

How to correctly create a release?

Greetings,

I created a project Media Field http://drupal.org/project/mediafield and have commited its source code for drupal 4.7 branch here http://cvs.drupal.org/viewcvs/drupal/contributions/modules/mediafield/?o...

As I remember, I have also created a release from DRUPAL-4-7 tag. Anyway, it is not available now when I'm trying to create a release.

How to print out a javascript link?

Hi guys, I've never written a Drupal module before, but have been experimenting a bit in the past few days.
I've written a function to implement hook_nodeapi, so I could supply some additional links to the $node object.
But I can't figure out how to add a javascript link into my $node->links['test_js'] array.
The following code is functional, but the javascript is printet out as an internal link. Eg. ?q=javascript:alert('hei')

Create an image element using form generation API

Hi,
I'm developing a module('s block) that should render an image (img src='') and I can't find a way to render one using the form api
http://api.drupal.org/api/HEAD/file/developer/topics/forms_api_reference...
Another question is how can I embed an image into a submit button
Any help would be greatly appreciated
Thanks
Oreng.

Pages

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