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

adding cvs $Id tag in new module

When creating a new module from scratch, how to I set the header of the module so that the date/version/etc is automatically updated by CVS. For example:

// $Id: node_example.module,v 1.14 2005/10/21 13:36:28 dries Exp $

I couldn't find the answer in the handbook.

thank you.

Access denied page

Hello guys,

How do I generate a drupal_access_denied() page properly?

I'm calling the function drupal_access_denied(), but it still shows the page content after the "access denied" message. It's like the page was generated twice. Two headers, two menus, two everything. The first one, with the access denied message; but the second one as the real page.

What can I be doing wrong?

Pice of code:

Blog's Main Page Not Available.

This is the second topic on my forum. the first one was regarding www.artknowledgenews.com and Recent Art News section.
Now...I've created a Blog on my Drupal Site, which is accessible thru the Sidebar at the left.
I edited the blog.module php file...with the purpose of getting something like this

Recent Art News (this is the block title at the left block sidebar)
- Latest Recent News (this is a link that should bring you the blog's main page with the latest postings)

What am I looking for this time?

I'm looking for something or some code that can work side by side with flexinode. My site is mostly for music reviews and I made flexinode define some fields such as artist, album, and genre. I want to be able to click on content, music reviews, then get a list of the different genres. Click on a genre and you are presented with a list of artists that a review exists for (leaving the possibility open for more than one review per artist or album) then maybe a list of their albums. Beside all the titles I'd want a number signifying just how many of these exist. And example.

Custom node type displays twice

I created a custom node type using node_example.module as a guide. I'm customizing the display when the node is viewed and it's working good, except that after it displays the node the way I've told it to, it repeats everything again and displays my custom node like it was a regular page, or blog (in other words, it prints the body and then who posted it and when). So, when I scroll down, all my blocks on the left are displayed twice and there is a redundant display of my custom node. What's going on?

tablesort and edit post (edit=Array in url)

in the tablesort and pager link, there is a bug: the form data isn't post correctly. The url is example.com?edit=Array and the data in array edit is lost. I use drupal-cvs.
Do you know if there is a code to resolve this bug (whitout change drupal core)? in the ufficial 4.7, will the bug fixed?

excuse my bad english
bye
Gianni

Pages

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