File "FrmProDropdownFieldsController.php"

Full path: /home/bud/public_html/swamp/wp-admin/wp-content/plugins/formidable-pro/deprecated/FrmProDropdownFieldsController.php
File size: 748 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

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

class FrmProDropdownFieldsController{

	public static function get_hidden_fields_with_readonly_values( $field, $field_name, $html_id ) {
		_deprecated_function( __METHOD__, '3.0', 'FrmFieldType::show_hidden_values' );
		$html = '';

		if ( is_array( $field['value'] ) ) {
			foreach ( $field['value'] as $selected_value ) {
				$html .= '<input type="hidden" value="' . esc_attr( $selected_value ) . '" name="' . esc_attr( $field_name ) . '[]" />';
			}
		} else {
			$html .= '<input type="hidden" value="' . esc_attr( $field['value'] ) . '" name="' . esc_attr( $field_name ) . '" id="' . esc_attr( $html_id ) . '" />';
		}

		return $html;
	}
}