From a3b6eb17ea0a7fc5c7a3963e02e29121b21975f6 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Mon, 5 Mar 2018 14:14:37 -0700 Subject: [PATCH 1/2] Remove shortcut module --- commerce_base.info.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/commerce_base.info.yml b/commerce_base.info.yml index cc008d7..d95380c 100644 --- a/commerce_base.info.yml +++ b/commerce_base.info.yml @@ -31,7 +31,6 @@ dependencies: - taxonomy - dblog - search - - shortcut - toolbar - field_ui - file From 74a4c09229931094a95784f08843eb51451144c5 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Mon, 5 Mar 2018 14:43:18 -0700 Subject: [PATCH 2/2] More cleanup of shortcut logic --- commerce_base.install | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/commerce_base.install b/commerce_base.install index ab342c9..96fa3d9 100644 --- a/commerce_base.install +++ b/commerce_base.install @@ -40,26 +40,6 @@ function commerce_base_install() { user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access site-wide contact form']); user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access site-wide contact form']); - // Allow authenticated users to use shortcuts. - user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access shortcuts']); - - // Populate the default shortcut set. - $shortcut = entity_create('shortcut', [ - 'shortcut_set' => 'default', - 'title' => t('Add content'), - 'weight' => -20, - 'link' => ['uri' => 'internal:/node/add'], - ]); - $shortcut->save(); - - $shortcut = entity_create('shortcut', [ - 'shortcut_set' => 'default', - 'title' => t('All content'), - 'weight' => -19, - 'link' => ['uri' => 'internal:/admin/content'], - ]); - $shortcut->save(); - // Allow all users to use search. user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['search content']); user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['search content']);