<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body style="direction: ltr;" bidimailui-charset-is-forced="true"
bidimailui-detected-decoding-type="latin-charset" text="#000000"
bgcolor="#ffffff">
I find what seems to be two different approaches for creating fields
for a custom content type via a module. One is from drewish, where
the field is first added via cck manually, then dumped with
var_export(content_fields()) and then added to the content type in
the install via content_field_instance_create(). The other is in
rfay's Example module, where Randy creates a table for the module in
the install and inserts fields into it that are what cck would
insert.<br>
<br>
I'm wondering if the latter removes the need for me to do all the
node processing from my module. Also, my content type has one field
(other than title and body) which is an image filefield with
unlimited instances, and I'm thinking that that same method would
have the field being handled by filefield and that the method in
Example would require that I manage the _fid, _list and _data db
content, etc., so if there's a reason why this would be a better way
to do it, or why the first method wouldn't be, I'm missing it.<br>
<br>
Jeff<br>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0in;"><img
src="cid:part1.01080803.00060706@ayendesigns.com"
name="ayenlogo" valign="top" vspace="30" align="LEFT"
border="0">
<font style="font-size: 8pt;" size="1">Ayen Designs </font><font
face="Times New Roman, serif"><font style="font-size: 8pt;"
size="1">
<br>
388 Bullsboro Drive #105 · Newnan, Georgia 30263</font></font>
<br>
<font face="Times New Roman, serif"><font style="font-size:
8pt;" size="1">
404-271-9734<br>
Web:<a href="http://ayendesigns.com">ayendesigns.com</a><br>
Blog: <a href="http://theaccidentalcoder.com">theAccidentalCoder.com</a><br>
Drupal: <a href="http://drupal.org/user/367108">j. ayen
green</a><br>
IRQ: j_ayen_green<br>
IM (Yahoo) baalwww (MSN) <a class="moz-txt-link-abbreviated" href="mailto:baalwww@yahoo.com">baalwww@yahoo.com</a><br>
Skype: ayendesigns
<br>
<br>
Ayen Designs is a tradename of the computer services
division of <img
src="cid:part2.08060201.01040307@ayendesigns.com"
name="acmelogo" align="absmiddle"></font></font></p>
</div>
</body>
</html>