# formidable/6.8.2/classes/helpers/FrmEmailHelper.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 6.8.2. 44 lines.

- Page: https://pluginprobe.com/plugins/formidable/6.8.2/code/classes/helpers/FrmEmailHelper.php
- Raw: https://pluginprobe.com/plugins/formidable/6.8.2/raw/classes/helpers/FrmEmailHelper.php
- Modified: 2020-12-07T20:56:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/6.8.2/code/classes/helpers/FrmEmailHelper.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

/**
 * @since 2.03.04
 */
class FrmEmailHelper {

	/**
	 * Get the userID field from a form
	 * This will not get repeating or embedded userID fields
	 *
	 * @since 2.03.04
	 *
	 * @param int $form_id
	 *
	 * @return int
	 */
	public static function get_user_id_field_for_form( $form_id ) {
		$where = array(
			'type'    => 'user_id',
			'form_id' => $form_id,
		);

		$user_id_field = FrmDb::get_var( 'frm_fields', $where, 'id' );

		return (int) $user_id_field;
	}

	/**
	 * This function should only be fired when Mandrill is sending an HTML email
	 * This will make sure Mandrill doesn't mess with our HTML emails
	 *
	 * @since 2.03.04
	 *
	 * @return bool
	 */
	public static function remove_mandrill_br() {
		return false;
	}
}

```
