Extension:Admin Links/Hooks/AdminLinks

In order for an extension to add links and sections to the AdminLinks page, it must define a new function, and register it with the "AdminLinks" hook. The registration should look like:

And the header of the function should look like:

The "tree" passed in to the function is of type ALTree. Each ALTree holds a group of sections, of type ALSection. A section is comprised of a group of rows, of type ALRow. A row, finally, holds a group of links or other text, each of type ALItem. The relevant methods for each are:

ALTree:


 * - retrieves the section of the tree that has this header
 * - adds a section to this tree, before the section with the specified header, if one is specified

ALSection:


 * - retrieves the row from this section that has this header
 * - adds a row to this section, before the row with the specified name, if one is specified

ALRow:


 * - adds an item to this row, before the item with the specified label, if one is specified

ALItem:


 * - creates a new ALItem object that links to a wiki page, with the ability to specify a description and parameters
 * - creates a new ALItem object that links to a special page
 * - creates a new ALItem object that links to the 'edit' action of a wiki page, with the specified text description
 * - creates a new ALItem object that links to a URL, with a specified text label