QuickMenu
From LordMattWiki
This is a special event which is called every time the admin page is built. Subscribers are encuraged to push their plugin onto the array thus adding it to the quickmenu on the bottom left of the admin area.
Plugins that don't must be found in the list and the small admin link clicked.
NP_Admin seeks to change this.
[edit] Example
function event_QuickMenu($data) {
array_push(
$data['options'],
array(
'title' => 'Admin Extend',
'url' => $this->getAdminURL(),
'tooltip' => "The ultamate extention to all your admin needs"
)
);
}
[edit] Security
For some users the idea that anyone might access quick menu items is annoying (or worse).
NP_Blogroll by Joel Pan uses this technique to make the quickmenu optional to the admin and even then requires the user logged in. You could further specify a test for member is admin.
(Obviously you need to create yourself an option for the install section). Add this prior to the array push to use the "return" to skip the push.
// only show when option enabled
if ($this->getOption('quickmenu') != 'yes') return;
global $member;
if (!($member->isLoggedIn())) return;
