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

Converting modules to 4.7 / CVS

Hi,

I'm a fairly experienced Drupal user, but by no means an expert with the project code.

I'm keen to start developing my sites in 4.7 / CVS because it is, in my opinion, a huge advance from 4.6, particularly for the cms type sites that I develop. I am aware that the cvs still contains bugs etc.

Obviously, many of the useful Drupal modules are written for 4.6. As I understand it, there are huge changes in the API (e.g. for form handling) between 4.6 and 4.7 / cvs.

image.module by another name

I am trying to modify image.module and create a totally different module called "customimage".
I want the module to act exactly like the image.module, but it would have a different name.

The module works, but the uploaded images files are saved as attachments.

Anyone got any idea why the image is saved as an attachement and not displayed as an image ?
thanks in advance...

Marcel
http://www.macminiforums.com/forums/

nmoderation in Teaser???

Hey, I'm sure this is a pretty simple question:

Basically, I'm using the nmoderation module, which at present is being recalled when the user clicks into a node.

How can I recall it in the teaser as well? i.e. so the node vote box is below the teaser?

I couldn't locate any pages in the handbook which specifically refer to linking things to the teaser... I'm sure its in there somewhere.

Thanks,

Alex

Do node_load returns object only if the user has access? bug?

I have been testing and since I migrated to 4.6 it seems that node_load only returns an object when there is a user with access that is logged on.
The problem is that I need to load this on a cron. Does anyone know how can I get node_load to return the object from a cron without a user logged on (anonymous)? ... is this a security feature or is this a bug?
Thanks

Hide tabs when there is no content

I would like to hide tabs in the user profile when there is no content to display.
I' m working on a module to put an image gallery inside the user profile, now i can display the tab with it's content, but if the gallery is empty i would hide this tab.
Any suggestion?
Thanks

Video module is not working

HI, i m having a problem i installed the video module and activated it but when i m using it i can see the movie does anyone know why is this happening and if someone can help me with this
thanks

Pages

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