Revision 6f4506af
Added by Andreas Kohlbecker over 2 years ago
modules/cdm_dataportal/cdm_dataportal.install | ||
---|---|---|
464 | 464 |
|
465 | 465 |
return join(', ', $tasks_performed); |
466 | 466 |
}; |
467 |
|
|
468 |
/** |
|
469 |
* update for RELEASE 5.17: |
|
470 |
* - enable new default TaxonRelationshipTypes: UUID_PROPARTE_MISAPPLIEDNAME_FOR, |
|
471 |
* UUID_PARTIAL_MISAPPLIEDNAME_FOR, UUID_PROPARTE_SYNONYM_FOR, UUID_PARTIAL_SYNONYM_FOR. |
|
472 |
*/ |
|
473 |
function cdm_dataportal_update_7600() |
|
474 |
{ |
|
475 |
$tasks_performed = array(); |
|
476 |
|
|
477 |
variable_del('cdm_dataportal_all_footnotes'); |
|
478 |
$tasks_performed[] = "obsolete variable 'cdm_dataportal_all_footnotes' deleted"; |
|
479 |
variable_del('cdm_dataportal_annotations_footnotes'); |
|
480 |
$tasks_performed[] = "obsolete variable 'cdm_dataportal_annotations_footnotes' deleted"; |
|
481 |
|
|
482 |
return join(', ', $tasks_performed); |
|
483 |
}; |
|
484 |
|
|
467 | 485 |
/* ======================================================================== */ |
468 | 486 |
|
469 | 487 |
/** |
modules/cdm_dataportal/settings.php | ||
---|---|---|
1547 | 1547 |
respective configuration site for taxon, search or media.') . '</p>', |
1548 | 1548 |
); |
1549 | 1549 |
|
1550 |
// ---- footnotes --- // |
|
1551 |
$form['footnotes'] = array( |
|
1552 |
'#type' => 'fieldset', |
|
1553 |
'#title' => t('Footnotes'), |
|
1554 |
'#collapsible' => FALSE, |
|
1555 |
'#collapsed' => FALSE, |
|
1556 |
'#description' => t('Taxa data such authors, synonyms names, descriptions, |
|
1557 |
media or distribution areas may have annotations or footnotes. When the |
|
1558 |
footnotes are enabled they will be visible (if they exist).'), |
|
1559 |
); |
|
1560 |
|
|
1561 |
$form['footnotes']['cdm_dataportal_all_footnotes'] = array( |
|
1562 |
'#type' => 'checkbox', |
|
1563 |
'#title' => t('Do not show footnotes'), |
|
1564 |
'#default_value' => variable_get('cdm_dataportal_all_footnotes', CDM_DATAPORTAL_ALL_FOOTNOTES), |
|
1565 |
'#description' => t('Check this if you do not want to show any footnotes'), |
|
1566 |
); |
|
1567 |
|
|
1568 |
$form['footnotes']['cdm_dataportal_annotations_footnotes'] = array( |
|
1569 |
'#type' => 'checkbox', |
|
1570 |
'#title' => t('Do not show annotation footnotes'), |
|
1571 |
'#default_value' => variable_get('cdm_dataportal_annotations_footnotes', CDM_DATAPORTAL_ANNOTATIONS_FOOTNOTES), |
|
1572 |
'#description' => t('Check this if you do not want to show annotation footnotes'), |
|
1573 |
); |
|
1574 |
|
|
1575 | 1550 |
$form['annotations'] = array( |
1576 | 1551 |
'#type' => 'fieldset', |
1577 | 1552 |
'#title' => t('Annotations'), |
Also available in: Unified diff
ref #8543 removing settings to generally disable footnotes