Scenario: Drupal 6 running on a Fedora 8 VPS requiring to send outgoing mail only via a Bluehost mail server.
Drupal
Configuring Outgoing Mail for Drupal with Postfix
Submitted by Jonathan Mitchell on Thu, 05/28/2009 - 22:01
Getting the allowed values for a Drupal 6.0 CCK field
When programmatically creating Drupal 6.0 nodes incorporating CCK fields it may be useful to know the allowed values for the field prior to submitting your form with drupal_execute().
NOTE: the listed function is otiose. Views supplies the required
functionality already.
$content_field = content_fields('field_make');
$allowed_values = content_allowed_values($content_field);
The following function returns an array of the allowed values for a CCK field.