Skip to content

Commit 74a4c09

Browse files
committed
More cleanup of shortcut logic
1 parent a3b6eb1 commit 74a4c09

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

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)