PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.01.02
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.01.02
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / helpers / FrmEmailHelper.php

FrmEmailHelper.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 4.01.02, at classes/helpers/FrmEmailHelper.php

41 lines 743 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @since 2.03.04
5 */
6 class FrmEmailHelper {
7
8 /**
9 * Get the userID field from a form
10 * This will not get repeating or embedded userID fields
11 *
12 * @since 2.03.04
13 *
14 * @param int $form_id
15 *
16 * @return int
17 */
18 public static function get_user_id_field_for_form( $form_id ) {
19 $where = array(
20 'type' => 'user_id',
21 'form_id' => $form_id,
22 );
23
24 $user_id_field = FrmDb::get_var( 'frm_fields', $where, 'id' );
25
26 return (int) $user_id_field;
27 }
28
29 /**
30 * This function should only be fired when Mandrill is sending an HTML email
31 * This will make sure Mandrill doesn't mess with our HTML emails
32 *
33 * @since 2.03.04
34 *
35 * @return bool
36 */
37 public static function remove_mandrill_br() {
38 return false;
39 }
40 }
41