tml_get_form_field()

Get a TML form field object.

Description

Theme_My_Login_Form_Field tml_add_form_field( mixed $form, string $field )

Get a TML form field object from the specified form.

Parameters

form

The form to add the field to. May be either a string or a Theme_My_Login_Form object.

field

The name of the field to retrieve.

Return Values

The Theme_My_Login_Form_Field object is returned if found, false is returned otherwise.

Examples

Example #1 Changing a form field label

$user_log = tml_get_form_field( 'register', 'user_login' );
$user_log->set_label( 'Enter your email' );