Skip to content

Commit

Permalink
Merge pull request #126 from localgovdrupal/fix/1.x/124-remove-footnotes
Browse files Browse the repository at this point in the history
Removes footnotes, its dependencies and the publications filter format, as it's no longer required.
  • Loading branch information
finnlewis committed Jan 17, 2024
2 parents 974c952 + 947c6ad commit a70486b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 200 deletions.
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
],
"require": {
"drupal/auto_heading_ids": "^2.0@beta",
"drupal-ckeditor-libraries-group/fakeobjects": "^4.0",
"drupal/footnotes": "^3.0",
"localgovdrupal/localgov_core": ">=2.1.10",
"localgovdrupal/localgov_paragraphs": ">=2.3.2"
},
Expand Down
69 changes: 0 additions & 69 deletions config/install/editor.editor.publications.yml

This file was deleted.

115 changes: 0 additions & 115 deletions config/install/filter.format.publications.yml

This file was deleted.

1 change: 0 additions & 1 deletion localgov_publications.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies:
- drupal:book
- drupal:menu_ui
- drupal:views
- footnotes:footnotes
- pathauto:pathauto
- localgov_media:localgov_media
- localgov_paragraphs:localgov_paragraphs
Expand Down
13 changes: 0 additions & 13 deletions localgov_publications.module
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\localgov_roles\RolesHelper;
use Drupal\node\NodeInterface;
use Drupal\user\Entity\Role;

/**
* Implements hook_theme().
Expand Down Expand Up @@ -46,18 +45,6 @@ function localgov_publications_theme($existing, $type, $theme, $path) {
];
}

/**
* Implements hook_modules_installed().
*/
function localgov_publications_modules_installed($modules, $is_syncing) {
if (!$is_syncing && in_array('localgov_publications', $modules)) {
// Add permission to use the publications text format this module provides.
$role_object = Role::load('authenticated');
$role_object->grantPermission('use text format publications');
$role_object->save();
}
}

/**
* Implements hook_localgov_role_default().
*/
Expand Down

0 comments on commit a70486b

Please sign in to comment.