[development] CCK lookup and drop-down list
Brad Bowman
brad at atendesigngroup.com
Fri Mar 14 16:35:30 UTC 2008
Sean,
You can use a CCK select field and define the allowed values using PHP.
Your code would look something like this:
$values = array();
$results = db_query("select id, name from {table}");
while ($result = db_fetch_array($results)) {
$values[$result['id']] = $result['name']
}
return $values;
Thanks,
Brad
--
Aten Design Group
Phone: 303.831.0449
More information about the development
mailing list