FAPI form_alter missing fields

in drupal, cck, fapi, fields, form_alter

There are many occasions in which you would like to alter a form behavior, and it's normally very easy to do -- just implement hook_form_alter and you're done. There are cases though, where fields will be missing, and in those cases, you need a workaround.

Read more »

Getting the value of a CCK field without node_load

in PHP, drupal, d6, cck, filefield, imagefield

More often than not, you'll come to a point where you need a field value of a node. Not the whole node, just a field. The most common case would appear to be when you need an image (say a promotional image). Some ways are easier than others for it, however you need to think of what you are doing under the hood.

Read more »