Subroutine Name

UnregCommand

Explanation and Usage

This will remove a previously defined command and unregister its associated subroutine.

Syntax

UnregCommand(Name)

Options

Name - This is the name of the action you want to remove. As an example, if an action was registered using:

RegCommand('mycommand', \&DoMyCommand);

Then you would unregister it using:

UnregCommand('mycommand');

Examples

This function is not called in the Aneuch source anywhere, however this is being provided as an example for plugin developers.

UnregCommand('mycommand');
This would unregister the command 'mycommand'. Any further requests to Aneuch via "?do=mycommand" would no longer execute the associated subroutine, and would instead redirect you to a page titled 'mycommand'.

← Return to API listing