Submitted by tyler on Thu, 04/12/2012 - 09:49
If you need a custom time field select list with 15 minute interval options in Drupal 7, try this out when adding a new field to your content type (this will work in Drupal 6 as well):
Field: List (text)
Widget: Select list
Allowed values list:
Submitted by tyler on Wed, 10/05/2011 - 16:12
So I had a content type with an optional, unlimited value Imagefield attached to it. The content type's user permissions where set to allow all authenticated users to edit any node of that type. Which is all fine and dandy like sour candy. However, by default users are able to edit and/or remove other user's images in that field. Out-of-the-box that is the intended functionality, but I wanted user's images to be protected from other users. Here is how it can be done with a module:
Submitted by tyler on Mon, 05/23/2011 - 16:10
Here is how to get a Drupal 6 CCK Filefield Imagefield default image path:
Submitted by tyler on Tue, 04/26/2011 - 16:56
Here is how to modify a CCK field on a node form in Drupal. In this particular example, the CCK field I am trying to modify is called 'field_news_image' and is inside a CCK Field Group called 'group_image'. The modification hides the field by wrapping a div around the field and setting the div's display to none.
Submitted by tyler on Thu, 02/10/2011 - 01:00
Drupal 6 (D7 below)
Below is a helpful function that will return the allowed values list for a Drupal CCK Integer Field as an Array.
For example, here is my allowed values list for my cck integer field "field_dg_hole_tee":

CODE: