Subroutine Name

UnregAdminPage

Explanation and Usage

This subroutine is used to remove an item from the administrative menu, and unregister its associated subroutine. This function could be used to remove certain menu items from the administrative menu.

Syntax

UnregAdminPage(Name)

Options

Name - This is the name of the menu item you want to remove. Note that it is not the "description" but the short name assigned. As an example, if a page was registered using:

RegAdminPage('myadminfunc', "My administrative menu option", \&MyAdminFunction);

Then you would unregister it using 'myadminfunc' as the name:

UnregAdminPage('myadminfunc');

Examples

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

UnregAdminPage('myadminfunc');
This will unregister the admin page 'myadminfunc', and remove it's menu item from the administrative menu.

← Return to API listing