dozent_input_old( string $input = '', null $old_data = null )


Parameters

$input

(string) (Optional) input field name

Default value: ''

$old_data

(null) (Optional) pass array() always

Default value: null


Return

(array|bool|mixed|string)


Source

File: includes/form-functions.php

    function dozent_input_old( $input = '', $old_data = null )
    {

        if ($old_data) {
            $value = dozent_array_get($input, $old_data);
        } else {
            $value = dozent_input_array_field($input);
        }

        if ($value) {
            return $value;
        }

        return '';
    }


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.