Skip to content

Commit 7fa4b01

Browse files
authored
Merge pull request #8 from bradjones1/patch-1
Remove shortcut module
2 parents 241bcf3 + 74a4c09 commit 7fa4b01

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

commerce_base.info.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ dependencies:
3131
- taxonomy
3232
- dblog
3333
- search
34-
- shortcut
3534
- toolbar
3635
- field_ui
3736
- file

commerce_base.install

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,6 @@ function commerce_base_install() {
4040
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access site-wide contact form']);
4141
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access site-wide contact form']);
4242

43-
// Allow authenticated users to use shortcuts.
44-
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access shortcuts']);
45-
46-
// Populate the default shortcut set.
47-
$shortcut = entity_create('shortcut', [
48-
'shortcut_set' => 'default',
49-
'title' => t('Add content'),
50-
'weight' => -20,
51-
'link' => ['uri' => 'internal:/node/add'],
52-
]);
53-
$shortcut->save();
54-
55-
$shortcut = entity_create('shortcut', [
56-
'shortcut_set' => 'default',
57-
'title' => t('All content'),
58-
'weight' => -19,
59-
'link' => ['uri' => 'internal:/admin/content'],
60-
]);
61-
$shortcut->save();
62-
6343
// Allow all users to use search.
6444
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['search content']);
6545
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['search content']);

0 commit comments

Comments
 (0)