Page 1 of 1

Syntax question

Posted: Wed Jan 13, 2016 7:05 pm
by me!
I am working on some Drupal code and have a part that I cant find the answer to. It is related to syntax I think.

In my form if I was referencing the value it would be:

Code: Select all

$value = $form['dependent_1']['dependent_1_more'];

So how do I do it in this statement? (as it is it is missing the dependent_1 reference)

Code: Select all

'visible' => array( 
':input[name="dependent_1_more"]' => array('value' => 'yes'),  
),