I created a custom module to try make the subject line editable by the user. It reflects on the input form without any errors, but the e-mail sent out doesn't reflect any changes.

I'm a bit new to this - any suggestions about what I'm missing?

function forward_alter_form_alter(&$form, &$form_state, &$form_id) {
  if ($form_id == 'forward_form') {

  $form['message']['subject']['#title'] = t('Subject');
  $form['message']['subject']['#type'] = 'textfield';
  }
}

Comments

john.oltman’s picture

Version: 7.x-2.0 » 8.x-1.x-dev
Issue summary: View changes

You would need to override forward_form_submit to pull in the new value and use it instead of the standard variable.

Moving to 8.x since it seems like a nice enhancement idea to make editable Subject an option.

john.oltman’s picture

Status: Active » Closed (fixed)

This was implemented as part of the initial 8.x release