PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 2.05.09
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v2.05.09
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 2.05.09, at classes/helpers/FrmEmailHelper.php

39 lines 735 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 * @return int
16 */
17 public static function get_user_id_field_for_form( $form_id ) {
18 $where = array(
19 'type' => 'user_id',
20 'form_id' => $form_id,
21 );
22 $user_id_field = FrmDb::get_var( 'frm_fields', $where, 'id' );
23
24 return (int) $user_id_field;
25 }
26
27 /**
28 * This function should only be fired when Mandrill is sending an HTML email
29 * This will make sure Mandrill doesn't mess with our HTML emails
30 *
31 * @since 2.03.04
32 *
33 * @return bool
34 */
35 public static function remove_mandrill_br() {
36 return false;
37 }
38 }
39