/[drupal]/contributions/modules/cvslog/cvs.module
ViewVC logotype

Diff of /contributions/modules/cvslog/cvs.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.150 by dww, Sat Jun 2 01:00:44 2007 UTC revision 1.151 by dww, Sat Jun 9 22:55:01 2007 UTC
# Line 1  Line 1 
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  /**  /**
# Line 429  function cvs_settings_form() { Line 429  function cvs_settings_form() {
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(
# Line 1439  function cvs_mail_user($uid, $extra = '' Line 1445  function cvs_mail_user($uid, $extra = ''
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" : '';
# Line 2584  User: Line 2594  User:
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  }  }

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

  ViewVC Help
Powered by ViewVC 1.1.6