I have a variable $doctype
that is an array:
$doctype = array(
'news' => ('news'),
'documents' => ('documents'),
'forms' => ('forms'),
'other' => ('other'),
);
which is used as options for another array:
$form['doc_type'] = array(
'#title' => 'Document Type',
'#type' => 'radios',
'#options' => $doctype,
'#size' => '30',
'#required' => TRUE,
'#default_value' => $doctype['news'],
now I'm trying to pass the current value for another function
I've tried:
form($form_state, &$doctype) {
but it shows up as a missing argument
I want to pass it through a reference, not as a return (already occupied/don't want to work around it)
Any help is appreciated