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

making module menu hook run code by default, like init does

I'm tinkering with my first module. Well, really tweaking the old sso module to suit my purposes and will likely eventually release it.

The existing module uses the _init() hook to run code every time a Drupal page gets loaded, regardless of the path. In general, newer modules use the _menu() hook to designate what to do depending on the path provided.

But I didn't see any documentation for the menu hook saying how to do two things:

1) Designate an action that should be taken regardless of the path.

C&P of node_example code doesnt seem to work

Hi,

I am completly new to drupal and try to understand the node_example.module . I copied the exact code from the node_example example and did run the necessary SQL. I can activate it but when I try to create content it shows up on the left hand navigation but nothing on the right side. I searched the forums and a few other people had the same problem but their solutions didnt seem to work for me.
As far as I understand things so far, the error should be in the node_example_form code ?

Also I noticed that node_example_form uses this code to create the forms:

Someone needs to update the captacha module

It doesn't work. No errors, but no image either. I have missed out on a lot of possible new members to my website because of it. It seems to work intermitantly, even with GD2.

Is there something better? Or a newer version not posted here that someone has?

Module that adds Digg, del.icio.us and Technorati links to nodes

I would like some feedback on my service_links.module that adds Digg, del.icio.us and Technorati links to nodes.

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/frjo/service_...

First I want to have suggestion for a better name :-).

You can see the links "digg | bookmark | cosmos" in action on http://xdeb.org/drupaldev.

db -> email garbled data filter?

Hi.

I recently added a couple elements ($node->title and $node->body) to the email sent out by the forward module and for the most part it is working as expected.

However, there are instances where the db -> email conversion makes for some garbled punctuation or other characters.

For instance an apostrophe turns to "’" and a dash turns to "—".

Also, I'd like to construct or find a set of filters that change html tags to email-friendly characters.

taxonomy_dhtml / path.module problem: page not found

Hi,

Does anyone else have a problem with taxonomy_dhtml and url aliases? When I add a url alias (using path.module) as instructed, the aliased url works fine, but it does not show up in the menu generated by taxonomy_dhtml. The menu still shows urls as taxonomy/term/14/9/ and not the alias.

However, when I include a trailing slash at the end of the relative url in the path alias form, the alias shows up in the menu generated by taxonomy_dhtml -- but the aliased link no longer works (a 'page not found' page is displayed).

Pages

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