If you are adding that option
into $form['workflow']['node_options']['#options'], then you can access it
by checking:
if (in_array('myoption', variable_get('node_options_' . $node->type,
array('status', 'promote')))) {
// Do something.
}
Dave Reid
[email protected]
On Tue, Jun 28, 2011 at 8:25 PM, Jeff Greenberg <[email protected]>wrote:
> **
> 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:
>
> Default options
> Published
> Promoted to front page
> Sticky at top of lists
> Create new revision
> My option
>
> 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?
>