Editing version 2 of page APIs_UnregSpecialPage (this is the most recent revision)
Note: This page is defined as a special page, and as such its final state may be different from what you see here.
Use template:
None
API_Template
DevTrack_Template
Version_Template
==Subroutine Name
**UnregSpecialPage**
==Explanation and Usage
This subroutine unregisters a previously registered special page. Admittedly, this function is probably not very useful, except if you wish to unregister the built-in special pages (RecentChanges, and discussion pages). There could be certain cases where you would want to unregister a special page that was registered by another plugin, or perhaps there may be some toggle integrated with an admin page your plugin provides. None the less, it was decided that since a function exists to register a special page, there should also be a clean and easy way to later unregister it.
==Syntax
**`UnregSpecialPage(PageName)`**
==Options
**PageName** - This will be the name of the page you wish to unregister. If the page name was previously registered, Aneuch will unregister it, and no longer call the subroutine associated with the page when it is loaded.
==Examples
This function is not called in the Aneuch source anywhere, however this is being provided as an example for plugin developers.
**`UnregSpecialPage('RecentChanges');`**\\This will unregister the page 'RecentChanges', which by default is set to call DoRecentChanges every time the page is loaded. If you use this command in your plugin, then every time someone visits the page RecentChanges, they will not actually see the list of recent changes to the site.
This page is a template
Summary:
User name:
Upload a file
By contributing to this wiki, you acknowledge that you waive your right to claim copyright of your individual contributions. The text of this site is uncopyrighted and released to the public domain.
Show markup help Styling **bold **, //italic //, __underline __, --strikethrough--, `teletype ` Headers = Level 1 =, == Level 2 ==, === Level 3 ===, ==== Level 4 ====, ===== Level 5 ===== (ending ='s optional) Lists * Unordered List, # Ordered List, ** Level 2 unordered, ### Level 3 ordered (up to 5 levels, NO SPACES IN FRONT) Links [[Page]], [[Page|description]], [[http://link]], [[http://link|description]] Images {{image.jpg}}, {{right:image.jpg}} (right aligned), [[link|{{image.jpg}}]] (image linked to link), {{image.jpg|alt text}} Extras ---- (horizonal rule), ~~~~ (signature)