Problem/Motivation
Somehow I only just noticed that the Easy Email Theme appears in the Appearance section, and also in the Block Layout.
Since neither of these actually do anything, can we hide these from the UI? Creating this issue in the module since that's where the change would have to go, I think, but it could check whether the theme is installed and alter the necessary pages if so?
Issue fork easy_email-3543496
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
zengenuity commentedIf we hide the theme on the Appearance page, how would you ever remove it if you wanted to? If we use
hidden:truein the info file, it's also a problem that you can't enable it if you install it manually. (as opposed to getting it as part of Drupal CMS)Using
hidden:truehides it on both the Appearance page and on the Block Layout page, so I think it's the correct solution. But, we'd have to build an alternative way to install and uninstall it. I suppose we could detect that the theme is available and/or installed and provide an install/uninstall option within Easy Email's UI.Comment #3
pameeela commentedOh, it does too! I thought we looked at that and it didn't totally solve the problem but it certainly does.
To me it makes sense to have the on/off live within the Easy Email module. 'Appearance' is really about your site's appearance, and the fact that your emails are styled by a full-fledged Drupal theme is an odd Drupalism. But I also think the use case of someone who is a UI only user, but also wants to specifically uninstall this theme, is pretty unlikely. But if it can be done without much trouble, that is even better.
Comment #4
zengenuity commentedComment #6
zengenuity commentedI've added code to enable and disable Easy Email Theme from the settings area of Easy Email module. And I hid Easy Email Theme in this issue: #3545277: Hide Easy Email Theme from Appearance and Block layout pages
Comment #8
pameeela commentedThis is excellent, thank you so much!
Comment #9
zengenuity commentedI've created a new release for this change.