Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/webform/includes/webform.emails.inc | ||
---|---|---|
94 | 94 |
/** |
95 | 95 |
* Theme the node components form. Use a table to organize the components. |
96 | 96 |
* |
97 |
* @param $form |
|
98 |
* The form array. |
|
99 |
* @return |
|
97 |
* @param array $variables |
|
98 |
* Array with key "form" containing the form array. |
|
99 |
* |
|
100 |
* @return string |
|
100 | 101 |
* Formatted HTML form, ready for display. |
102 |
* |
|
103 |
* @throws Exception |
|
101 | 104 |
*/ |
102 | 105 |
function theme_webform_emails_form($variables) { |
103 | 106 |
$form = $variables['form']; |
... | ... | |
692 | 695 |
* |
693 | 696 |
* @param $email |
694 | 697 |
* An array of settings for sending an e-mail. |
698 |
* |
|
699 |
* @return int|false |
|
700 |
* The e-mail identifier for this row's settings on success else false. |
|
695 | 701 |
*/ |
696 | 702 |
function webform_email_insert($email) { |
697 | 703 |
// TODO: This is not race-condition safe. Switch to using transactions? |
... | ... | |
716 | 722 |
* |
717 | 723 |
* @param $email |
718 | 724 |
* An array of settings for sending an e-mail. |
725 |
* |
|
726 |
* @return false|int |
|
727 |
* The e-mail identifier for this row's settings on success else false. |
|
719 | 728 |
*/ |
720 | 729 |
function webform_email_clone($email) { |
721 | 730 |
$email['eid'] = NULL; |
... | ... | |
728 | 737 |
* @param $email |
729 | 738 |
* An array of settings for sending an e-mail containing a nid, eid, and all |
730 | 739 |
* other fields from the e-mail form. |
740 |
* |
|
741 |
* @return false|int |
|
742 |
* On success SAVED_NEW or SAVED_UPDATED, depending on the operation performed, |
|
743 |
* false on failure. |
|
731 | 744 |
*/ |
732 | 745 |
function webform_email_update($email) { |
733 | 746 |
$email['excluded_components'] = implode(',', $email['excluded_components']); |
Formats disponibles : Unified diff
Weekly update of contrib modules