module

The standard Drupal comment approval admin page has always been an annoyance to me. The main reason I will toss a comment is that it's spam. You know, like "I love this blog. For a great 3-day cruise..." and the like. The problem with the approval page is that it shows everything BUT the comment...

Mediapool module released

I released version 6.x-1.0 of Mediapool, a module that allows a node without a dedicated image to have one randomly selected from a pool of applicable images.

I was recently working on a custom Drupal 6.x module that needs to create a custom content type with fields upon installation. I did quite a bit of hunting for how best to do this. There are a few different approaches, including using the Features module, or having my module do all the node and db handling, etc. I decided to use the export and import features of CCK, and it's very easy to do. Here is a link to the handbook page at DO that explains how to do it.

On Being a Blockhead

I created a Drupal 6 module, and in it I implemented hook_block(). I set up the block to appear in a certain region, and hook_block acted like a blockhead...

I had the need to add an image tag to page output that was generated inside a custom Drupal module. I had retrieved the image's FID (file ID) from the CCK field, and needed to get from there to having an ImageCache version of the image displayed. I'd done it within a view by selecting the appropriate field format in the Views UI, but how to do it in code? Like many other tasks in Drupal, the solution turned out to be easier than the hunt for it.

Subscribe to RSS - module
©2005-2017 Ayen Designs. Underlying theme by Kiwi Themes.