Syntax question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
me!
Forum Contributor
Posts: 133
Joined: Sat Nov 04, 2006 8:45 pm

Syntax question

Post 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'),  
),
Post Reply