| 1 |
<?php |
<?php |
| 2 |
// $Id: cvs.module,v 1.149 2007/05/29 16:19:36 dww Exp $ |
// $Id: cvs.module,v 1.150 2007/06/02 01:00:44 dww Exp $ |
| 3 |
// $Name: $ |
// $Name: $ |
| 4 |
|
|
| 5 |
/** |
/** |
| 429 |
'#default_value' => variable_get('cvs_declined_email', $strings['cvs_declined_email']), |
'#default_value' => variable_get('cvs_declined_email', $strings['cvs_declined_email']), |
| 430 |
'#description' => t('The message to send to users whose accounts have been declined.'), |
'#description' => t('The message to send to users whose accounts have been declined.'), |
| 431 |
); |
); |
| 432 |
|
$form['cvs_email_form']['cvs_disabled_email'] = array( |
| 433 |
|
'#title' => t('CVS account disabled e-mail message'), |
| 434 |
|
'#type' => 'textarea', |
| 435 |
|
'#default_value' => variable_get('cvs_disabled_email', $strings['cvs_disabled_email']), |
| 436 |
|
'#description' => t('The message to send to users whose accounts have been disabled.'), |
| 437 |
|
); |
| 438 |
|
|
| 439 |
if (module_exists('project_release')) { |
if (module_exists('project_release')) { |
| 440 |
$form['cvs_message_new_release_branch'] = array( |
$form['cvs_message_new_release_branch'] = array( |
| 1445 |
$extra = $extra ? t('Reason:'). "\n". $extra ."\n\n" : ''; |
$extra = $extra ? t('Reason:'). "\n". $extra ."\n\n" : ''; |
| 1446 |
$message = strtr($strings['cvs_declined_email'], $message_variables); |
$message = strtr($strings['cvs_declined_email'], $message_variables); |
| 1447 |
break; |
break; |
| 1448 |
|
case CVS_DISABLED: |
| 1449 |
|
$extra = $extra ? t('Reason:'). "\n". $extra ."\n\n" : ''; |
| 1450 |
|
$message = strtr($strings['cvs_disabled_email'], $message_variables); |
| 1451 |
|
break; |
| 1452 |
case CVS_PENDING: |
case CVS_PENDING: |
| 1453 |
case CVS_QUEUED: |
case CVS_QUEUED: |
| 1454 |
$extra = $extra ? t('Question:'). "\n". $extra ."\n\n" : ''; |
$extra = $extra ? t('Question:'). "\n". $extra ."\n\n" : ''; |
| 2594 |
Motivation message: |
Motivation message: |
| 2595 |
%motivation-message'); |
%motivation-message'); |
| 2596 |
|
|
| 2597 |
|
$strings['cvs_disabled_email'] = t('%account-name, |
| 2598 |
|
We are sorry to inform you that your CVS account has been disabled due to the reasons outlined below. |
| 2599 |
|
|
| 2600 |
|
%cvs-admin-message |
| 2601 |
|
Please do not hesitate to contact us if you would like to discuss this further, as we can still review our position. |
| 2602 |
|
|
| 2603 |
|
Kind regards, |
| 2604 |
|
%cvs-admin-name. |
| 2605 |
|
|
| 2606 |
|
-------------------- |
| 2607 |
|
User: |
| 2608 |
|
%user-account-url |
| 2609 |
|
|
| 2610 |
|
Motivation message: |
| 2611 |
|
%motivation-message'); |
| 2612 |
|
|
| 2613 |
return $strings; |
return $strings; |
| 2614 |
} |
} |