tml_unregister_form()

Unregister a TML form.

Description

void tml_unregister_form( mixed $form )

Unregister a TML form. Default TML forms are added on the init action hook with a priority of 0. In order to remove them, you should use the init hook with a higher priority.

Parameters

form

The form to unregister. May either be the form name or the Theme_My_Login_Form object.

Return Values

No value is returned.

Examples

Example #1 Unregistering a form by name

tml_unregister_form( 'foo' );

Example #2 Unregistering a form using a form object

$form = tml_get_form( 'foo' );

tml_unregister_form( $form );