POD for three macros

This commit is contained in:
Colin Kuskie 2005-12-16 21:13:30 +00:00
parent 1bcfa3bddc
commit fe27be1974
3 changed files with 58 additions and 0 deletions

View file

@ -23,6 +23,26 @@ use WebGUI::SQL;
use WebGUI::URL;
use WebGUI::Utility;
=head1 NAME
Package WebGUI::Macro::AdminBar
=head1 DESCRIPTION
Macro for displaying administrative functions to a user with Admin turned on.
=head2 process ( [template ] )
process takes one optional parameters for customizing the layout
of the Admin bar.
=head3 template
A template to use for formatting the link. The default template creates the sliding
Admin bar to the left of the screen.
=cut
#-------------------------------------------------------------------
sub process {
return "" unless ($session{var}{adminOn});