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

hook access (when)

Hi

Is hook access called when you click the “create new story link” or is it called when you submit after filling out the story form?

Also please could you tell me which hook, would allow me to check if a user is allowed to see a content type when they click the "create new story link"

Thank you once again (ps i hope to be able to contribute this module to the community)

Editing menu items causes HTTP 404

A module of mine uses hook_menu() to add some menu items. Everything goes well until I try to edit one of those items. Drupal points to /admin/build/menu/item/edit/-18 which causes the system to display a 404 page. This page consists of two times page.tpl.php with content only in the second one. This means you see the default template without the content and right beneath that one the same template but this one does got content like the blocks. An example of one of the menu items:

Laying out a form

Hi, I would like to lay out a form so that I have some form elements in a row eg: first name, middle name, sir name. I am unsure how to layout the page in this fashion.

Am I right in thinking that I should use the form arrays with '#prefix' => '

', and '#suffix' => '

', used appropriately to create the layout i want? is this the right approach to laying out forms?

Once again, thank you for all the excellent help.

Today's Hot topic

Ive recently integrated phpBB3 RC5 with drupal using the new (insanely cool) phpBB module, and I've found that it already includes a block that i use further down my page, but at the top of my page i want to have a bar with text like:

Current hot topic: Bla bla bla | comments(21) | Last updated 55 minutes ago.

So if you could just quickly check my query on this one it would be awesome:

The table im querying is called 'phpbb_topics' and the keys im interested in looks like this:

votingapi_field not displaying fields, need to backtrack to figure out why. CCK internals question

I am having a problem with votingapi_field not displaying fields on nodes (or node edit forms). Devel's Dev Render feature tells me that there is a content entry for the fields, but that they have empty [#value]s. The html to display the field in question should be provided by votingapi_field_field (which calls _votingapi_field_output), so I need to go one step farther up the chain and find out if votingapi_field_field is being called, and if so with what parameters. But at that point I am lost.

Applet error on drupal

I got error when load Java Applet which integrated with Drupal module. Somebody khow how to solve this problem?
Just for info, the Java Applet running well on phpnuke.

-- heritriw --
Get drupal phone directory module on :
http://konang.blogspot.com/2007/08/create-drupal-module.html
http://konang.blogspot.com/

Pages

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