Projet

Général

Profil

Révision 01f36513

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/includes/webform.emails.inc
102 102
 *
103 103
 * @throws Exception
104 104
 */
105
function theme_webform_emails_form($variables) {
105
function theme_webform_emails_form(array $variables) {
106 106
  $form = $variables['form'];
107 107
  $node = $form['#node'];
108 108

  
......
392 392
    '#default_value' => $email['exclude_empty'],
393 393
  );
394 394

  
395
  // TODO: Allow easy re-use of existing templates.
395
  // @todo: Allow easy re-use of existing templates.
396 396
  $form['templates']['#tree'] = TRUE;
397 397
  $form['templates']['default'] = array(
398 398
    '#type' => 'textarea',
......
575 575
  $form_state['values']['templates']['default'] = str_replace(array("\r", "\n"), array('', "\n"), $form_state['values']['templates']['default']);
576 576

  
577 577
  // Set the template value.
578
  // TODO: Support reuse of templates.
578
  // @todo: Support reuse of templates.
579 579
  if (strcmp(trim($form_state['values']['templates']['default']), trim($form_state['values']['template'])) == 0) {
580 580
    $email['template'] = 'default';
581 581
  }
......
701 701
 *   The e-mail identifier for this row's settings on success else false.
702 702
 */
703 703
function webform_email_insert($email) {
704
  // TODO: This is not race-condition safe. Switch to using transactions?
704
  // @todo: This is not race-condition safe. Switch to using transactions?
705 705
  if (!isset($email['eid'])) {
706 706
    $next_id_query = db_select('webform_emails')->condition('nid', $email['nid']);
707 707
    $next_id_query->addExpression('MAX(eid) + 1', 'eid');

Formats disponibles : Unified diff