Révision ba3b3627
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ds/modules/ds_ui/includes/ds.fields.inc | ||
---|---|---|
445 | 445 |
'#required' => TRUE, |
446 | 446 |
'#default_value' => isset($custom_block->properties['block']) ? $custom_block->properties['block'] : '', |
447 | 447 |
); |
448 |
$form['block_identity']['block_visibility'] = array( |
|
449 |
'#type' => 'checkbox', |
|
450 |
'#title' => t('Respect Block Visibility'), |
|
451 |
'#description' => t('Toggle this checkbox if you would like this field to respect the same visibility settings configured for the block.'), |
|
452 |
'#default_value' => isset($custom_block->properties['block_visibility']) ? $custom_block->properties['block_visibility'] : FALSE, |
|
453 |
); |
|
448 | 454 |
$form['block_identity']['block_render'] = array( |
449 | 455 |
'#type' => 'select', |
450 | 456 |
'#options' => array( |
... | ... | |
470 | 476 |
$form_state['field']->properties = array(); |
471 | 477 |
$form_state['field']->properties['block'] = $form_state['values']['block']; |
472 | 478 |
$form_state['field']->properties['block_render'] = $form_state['values']['block_render']; |
479 |
$form_state['field']->properties['block_visibility'] = $form_state['values']['block_visibility']; |
|
473 | 480 |
} |
474 | 481 |
|
475 | 482 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules