Skip to content

Commit

Permalink
11.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 8, 2024
1 parent 28e799d commit a9eaf64
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Stanford Media

11.0.1
--------------------------------------------------------------------------------
_Release Date: 2024-01-08_

- Update hook to remove filter plugin.

11.0.0
--------------------------------------------------------------------------------
_Release Date: 2024-01-08_
Expand Down
2 changes: 1 addition & 1 deletion stanford_media.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides media module configuration and plugins.
core_version_requirement: ^10.2
package: media
type: module
version: 11.0.0
version: 11.0.1
dependencies:
- dropzonejs:dropzonejs
- drupal:breakpoint
Expand Down
13 changes: 13 additions & 0 deletions stanford_media.install
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,16 @@ function stanford_media_update_11000() {
}
stanford_media_install();
}

/**
* Remove filter plugin settings.
*/
function stanford_media_update_11001() {
$config_factory = \Drupal::configFactory();
foreach ($config_factory->listAll('filter.format.') as $config_name) {
$config = $config_factory->getEditable($config_name);
if ($config->get('filters.stanford_media_embed_markup')) {
$config->clear('filters.stanford_media_embed_markup')->save();
}
}
}

0 comments on commit a9eaf64

Please sign in to comment.