multiple status for drupal 7 change
$form['name'] = array(
'#type' => 'textfield',
'#title' => t(''),
'#description' => '',
'#default_value' => isset($name) ? $name : '',
'#attributes' => array('placeholder' => array('Search')),
'#prefix' => '<div class="span3 custom-nomargin">',
'#suffix' => '</div>',
'#states' => array(
'visible' => array(
'#agent_order' => array(
array('value' => 'OrderID'),
array('value' => 'Event Name')
),
),
),
single status for drupal 7 change
$form['name'] = array(
'#id' => 'name',
'#type' => 'textfield',
'#title' => t(''),
'#description' => '',
'#default_value' => isset($name) ? $name : '',
'#attributes' => array('placeholder' => array('Search')),
'#states' => array(
'invisible' => array('#status' => array('value' => 'ALL'),
),
),
'#prefix' => '<div class="span3 custom-nomargin">',
'#suffix' => '</div>',
);
No comments:
Post a Comment