forked from alxp/islandora
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor changes and post_update for delete_media_and_files
- Loading branch information
1 parent
e15b632
commit ee85472
Showing
5 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
drupal.islandora.theme_css: | ||
islandora: | ||
version: VERSION | ||
css: | ||
theme: | ||
css/islandora.theme.css: {} | ||
css/islandora.css: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Post updates. | ||
*/ | ||
|
||
/** | ||
* Set default value for delete_media_and_files field in settings. | ||
*/ | ||
function islandora_post_update_delete_media_and_files() { | ||
$config_factory = \Drupal::configFactory(); | ||
$config = $config_factory->getEditable('islandora.settings'); | ||
$config->set('delete_media_and_files', TRUE); | ||
$config->save(TRUE); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters