Every email have subject like "[tkt:8] some text"
I would like to customize subject but can not find any interface.
I check code and find no one string like variable_set('support_key', 'custom value')
But find two strings variable_get:
.\support.module:962: '!key' => '['. variable_get('support_key', 'tkt') .":$nid]",
.\support.module:2778: $key = variable_get('support_key', 'tkt');

Looks like variable_set('support_key', 'custom value') missing or forgotten. Please implement it.

Comments

jeremy’s picture

Status: Active » Closed (duplicate)

This is now exposed:
#694264: Custom e-mail text

mrtoner’s picture

Title: Configure email subjects » support_key setting not exposed
Status: Closed (duplicate) » Active

Maybe I should have simply opened a new issue, but I'm reading the OP's problem entirely differently.The OP's issue wasn't so much that the entire subject couldn't be customized, but that the support_key setting isn't exposed available in order to be changed. Even with the features added in #694264: Custom e-mail text this option still cannot be easily edited.

EDIT: it seems that the variable support_key doesn't actually exist. Since variable_set('support_key','tkt') is never called, no such variable is ever saved.

jeremy’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Category: bug » feature
Status: Active » Patch (to be ported)

Because support_key is a variable, it is exposed through settings.php. $conf['support_key'] = 'foo'; will override the default value.

In any case, I've gone ahead and exposed this setting through the admin interface (and cleaned up the mail settings page a bit while I was there):
http://drupalcode.org/project/support.git/commit/37ec0f3

Needs to be ported to the 7.x branch.

  • Jeremy committed 37ec0f3 on 8.x-1.x
    feature #860714: expose notifications threading key (defaults to 'tkt')
    
    

  • Jeremy committed 37ec0f3 on 8.x-1.x
    feature #860714: expose notifications threading key (defaults to 'tkt')
    
    
purencool’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (outdated)