Hi
I have a form in my module which includes the following segment:
$form['evalform']= array(
'#type' => 'fieldset',
'#title' => t('Evaluation fields:'),
'#tree' => TRUE,
'#collapsible' => TRUE,
);
$form['evalform']['principles_rating'] = array(
'#type' => 'radios',
'#title' => t('Principles rating'),
'#default_value' => $node->principles_rating,
'#options' => $ratingbuttons,
'#description' => t('Principles rating description'),
);
when it comes time to insert I user var_dump($node) to check the values and things are fine except that
there is level issue which I just don't understand yet. What I mean is that 'principles_rating' cannot be accessed via $node->principles_rating because its inside an array called 'evalform'. The var_dump gives:
object(stdClass)(23) { ["nid"]=> int(20) ["vid"]=> int(20) ["uid"]=> string(1) "1" ["created"]=> int(1137046448) ["changed"]=> int(1137046448) ["type"]=> string(21) "fhsstadmin-evaluation" ["evalcontentdiv"]=> array(1) { ["pagecontent"]=> string(0) "" } ["evalform"]=> array(5) { ["principles_rating"]=> string(1) "2" ... ["validated"]=> bool(true) ["is_new"]=> bool(true) }
How do I actually access the value in my insert fucntion, i.e. what do I need to change in:
db_query("INSERT INTO {fhsstadmin}_mediation (nid,
uid,