If you are adding that option into $form['workflow']['node_options']['#options'], then you can access it by checking:<div><font class="Apple-style-span" color="#222222" face="'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace"><span class="Apple-style-span" style="line-height: 18px; white-space: pre-wrap; font-size: 11px; "><br>
</span></font></div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: 'courier new', monospace; font-size: 11px; line-height: 18px; white-space: pre-wrap; ">if (in_array('myoption', variable_get('node_options_' . $node->type, array('status', 'promote')))) {</span><br>
<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: 'courier new', monospace; font-size: 11px; line-height: 18px; white-space: pre-wrap; "> // Do something.</span><br><div><font class="Apple-style-span" color="#222222" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: 11px; line-height: 18px; white-space: pre-wrap; ">}</span></font></div>
<div><font class="Apple-style-span" color="#222222" face="'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace"><span class="Apple-style-span" style="font-size: 11px; line-height: 18px; white-space: pre-wrap;"><br>
</span></font></div><div>Dave Reid<br><a href="mailto:dave@davereid.net">dave@davereid.net</a><div><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 8:25 PM, Jeff Greenberg <span dir="ltr"><<a href="mailto:jeff@ayendesigns.com">jeff@ayendesigns.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div style="direction:ltr" text="#000000" bgcolor="#ffffff">
Still unclear on this...not for lack of searching. If I add a field
to node_type_form with hook_form_alter, how do I access that field's
contents when NOT on the content type page? For example, if as a
result of hook_form_alter my content type form shows the following:<br>
<br>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="color:rgb(51, 51, 51);font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif;font-size:13px;line-height:20px"><label style="display:block;font-weight:bold;margin:0px;padding:0px;border-width:0px;vertical-align:baseline">Default options</label>
<div style="margin:0px;padding:0px;border-width:0px;vertical-align:baseline">
<div style="margin:0px;padding:5px 0px;border-width:0px;vertical-align:baseline"><input name="node_options[status]" value="status" checked style="margin:0px;padding:0px;border-width:0px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif" type="checkbox"><span> </span><label style="display:inline;font-weight:normal;margin:0px;padding:0px;border-width:0px;vertical-align:baseline;text-transform:none;font-size:0.923em">Published</label></div>
<div style="margin:0px;padding:5px 0px;border-width:0px;vertical-align:baseline"><input name="node_options[promote]" value="promote" checked style="margin:0px;padding:0px;border-width:0px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif" type="checkbox"><span> </span><label style="display:inline;font-weight:normal;margin:0px;padding:0px;border-width:0px;vertical-align:baseline;text-transform:none;font-size:0.923em">Promoted to
front page</label></div>
<div style="margin:0px;padding:5px 0px;border-width:0px;vertical-align:baseline"><input name="node_options[sticky]" value="sticky" style="margin:0px;padding:0px;border-width:0px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif" type="checkbox"><span> </span><label style="display:inline;font-weight:normal;margin:0px;padding:0px;border-width:0px;vertical-align:baseline;text-transform:none;font-size:0.923em">Sticky at top
of lists</label></div>
<div style="margin:0px;padding:5px 0px;border-width:0px;vertical-align:baseline"><input name="node_options[revision]" value="revision" style="margin:0px;padding:0px;border-width:0px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif" type="checkbox"><span> </span><label style="display:inline;font-weight:normal;margin:0px;padding:0px;border-width:0px;vertical-align:baseline;text-transform:none;font-size:0.923em">Create new
revision</label></div>
<div style="margin:0px;padding:5px 0px;border-width:0px;vertical-align:baseline"><input name="node_options[widglet]" value="widglet" checked style="margin:0px;padding:0px;border-width:0px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif" type="checkbox"><span> My option<br>
<br>
</span></div>
</div>
</span></span>The setting for My options shows up every time I
edit the content type, but how do I access it when content is being
created for that content type?
</div>
</blockquote></div><br></div></div>