Revision 6e9292aa
Added by Assos Assos over 9 years ago
drupal7/sites/all/modules/ds/modules/ds_extras/includes/ds_extras.admin.inc | ||
---|---|---|
142 | 142 |
$form['additional_settings']['fs4']['ds_extras_switch_field'] = array( |
143 | 143 |
'#type' => 'checkbox', |
144 | 144 |
'#title' => t('View mode switcher'), |
145 |
'#description' => t('Adds a field with links to switch view modes inline with Ajax. Only works for nodes at this time.'), |
|
145 |
'#description' => t('Adds a field with links to switch view modes inline with Ajax. Only works for nodes at this time. It does not work in combination with the reset layout.'),
|
|
146 | 146 |
'#default_value' => variable_get('ds_extras_switch_field', FALSE), |
147 | 147 |
); |
148 | 148 |
|
... | ... | |
415 | 415 |
), |
416 | 416 |
), |
417 | 417 |
); |
418 |
$form['ft']['fi-first-last'] = array( |
|
419 |
'#type' => 'checkbox', |
|
420 |
'#title' => t('Add first/last classes'), |
|
421 |
'#default_value' => isset($field_settings['fi-first-last']) ? $field_settings['fi-first-last'] : FALSE, |
|
422 |
'#states' => array( |
|
423 |
'visible' => array( |
|
424 |
':input[name$="[ft][' . $wrapper_key . ']"]' => array('checked' => TRUE), |
|
425 |
), |
|
426 |
), |
|
427 |
); |
|
418 | 428 |
} |
419 | 429 |
if ($wrapper_key != 'lbw') { |
420 | 430 |
$form['ft'][$wrapper_key . '-def-at'] = array( |
... | ... | |
563 | 573 |
$region_blocks = variable_get('ds_extras_region_blocks', array()); |
564 | 574 |
$remove = $form_state['values']['additional_settings']['region_to_block']['remove_block_region']; |
565 | 575 |
foreach ($remove as $key => $value) { |
566 |
if ($key === $value) {
|
|
576 |
if ($value != 0 && $key == $value) {
|
|
567 | 577 |
$variable_set = TRUE; |
568 | 578 |
if (module_exists('block')) { |
569 | 579 |
db_delete('block') |
Also available in: Unified diff
Weekly update of contrib modules