Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lathan’s picture

lathan’s picture

Status: Active » Needs review
FileSize
3.18 KB

missed the enable, fixed now.

Utkarsh_Mishra’s picture

Issue summary: View changes
Status: Needs review » Needs work
salvis’s picture

Status: Needs work » Needs review

Again, what are we trying to do here, and why are you changing from NR to NW?

Let's at least try to let the testbot run...

Status: Needs review » Needs work

The last submitted patch, 2: allow-default-theme-2-2071811.patch, failed testing. View results

salvis’s picture

#2 needs a re-roll.

Utkarsh_Mishra’s picture

Assigned: Unassigned » Utkarsh_Mishra
Status: Needs work » Needs review
FileSize
2.9 KB
salvis’s picture

Status: Needs review » Needs work

Thank you for the updated patch!

  1. +++ b/htmlmail.admin.inc
    @@ -144,11 +144,25 @@ function htmlmail_admin_settings() {
    +  $form['theme']['htmlmail_theme_default'] = array(
    

    This is neither the default theme nor the theme default but (apparently) whether to use the (site's?) default theme.

    I guess the variable should be called something like 'htmlmail_use_default_theme'.

    Why can we not just select that theme if that's what we want?

  2. +++ b/htmlmail.admin.inc
    @@ -144,11 +144,25 @@ function htmlmail_admin_settings() {
    +    '#description' => 'Use drupal default theme as defined in appearance as the mail, that will hold your customized templates.',
    

    I'm still confused about what this does. What default are we using for what and what are we overriding?

    (Capital 'D' in 'Drupal')

  3. +++ b/htmlmail.admin.inc
    @@ -144,11 +144,25 @@ function htmlmail_admin_settings() {
    +    '#disabled' => $enabled,
    

    You must be kidding...

Utkarsh_Mishra’s picture

The purpose of the issue was to let the user select the default theme that is site's default theme as the theme for mail template and not to choose from the dropdown list though yes the user can still choose the theme by just disabling the checkbox. The $enabled variable just updates the state of the dropdown list that should be enabled or not depending on the checkbox value.

Attached a screenshot and patch with some proposed changes.

Utkarsh_Mishra’s picture

Status: Needs work » Needs review
salvis’s picture

Version: 7.x-2.x-dev » 8.x-3.x-dev
Status: Needs review » Needs work

Ah, now I understand, but I'm sorry, this is over-engineered. All we need for fulfilling this request is an additional option in the drop-down list.

And, D8 has to go first.

TR’s picture

Assigned: Utkarsh_Mishra » Unassigned