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

How does hook_menu() work? Something missing from documentation.

In Drupal 4.6.0 I tried writing something similar to module taxonomy_menu so that I can insert extra menu items using a different data source. I read the documentation for hook_menu but it does not mention how it uses caching or the menu table. My use of hook_menu produced something different to taxonomy_menu.

Some of the added items never appeared in the menu no matter what I did. I tried MENU_DYNAMIC_ITEM but nothing changed.

I then shut down the computer for a rest (I have a strict rule of spending at least 0.5 hours a day away from the computer). This morning some extra menu items appeared. What changed?

Last night I tried clearing the cache table but that did nothing. I tried resetting the menu table but that did nothing. I tried my code in the $may_cache is true section and in the false section. There must be something else stopping the menu items displaying.

I found the menu items were appearing in the menu table with settings that are exactly the same as menu items that display. When I visit administration >> menus I found some of the temporary menu items from my code were being added to the menu table. After a few visits to the menus page I have items added seven times.

The extra entries have a pid of 1. pid is the index of url_alias but there is no entry in url_alias with pid=1.

The extra entries are of type 22 and I have not found where the type field is defined or used.

Need help writing specs

Hi,

I'm working for a non-profit (www.ccia.org.au) and want to use drupal as an intranet.

I have two modules I need writing and do not have the skills or time to do it myself.
I'm considering using rentacoder.com to get this work done and I'm happy to contribute any useful code drupal.
Alternatively, if someone here is interested they should contact me.

Regarding specifications for these modules, are there any Drupal code standards I should insist on ? (var names, formatting, etc)

Reporting a post?

I tried searching around but found no such module... does anyone know of a module that provides the option to report a post?

If there isn't such a thing yet... I am sure many sites would love such a module so maybe we can put together some cash and put up a bounty for it.

Thanks :)

Node edit and input format

I notice that if a node has been created using the 'Full HTML' input format by the Admin, then this node can not be edited by another user even though that user has the "administer nodes" right. Logically, a user who is given the "administer nodes" right should be able to edit the node whatever the input format used for creating that node.

Other users except the admin (uid=1) only have access to the "Filtered HTML" input. Is there any way to choose access rights to Input format for other users ?

E-mail messages contain 

Hi,

I'm sure someones mentioned this before, but unfortunately the search on this site won't let me find it.

How come all the e-mails Drupal creates (including from this site) start with ? I want to get rid of the  at the beginning and I can't find anything in the code for it.

Thanks,

Drazzig

Single page in multiple books

From what I can see, it doesn't look like it is possible to have multiple books share the same pages. The reason I've been gravitating towards using books instead of taxonomy is because books are more simpler for users to understand.

The concept is:
Book 1:
--Page 1
--Page 2
Book 2
--Page 1
--Page 2

Custom Book
--Page one (from Book 1)
--Page two (from Book 2)

Pages

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