Added POD to 5 macros
Internationalized the AssetProxy "Invalid Asset URL" error message.
This commit is contained in:
parent
fe27be1974
commit
7c619a1ecd
6 changed files with 115 additions and 1 deletions
|
|
@ -17,6 +17,35 @@ use WebGUI::Session;
|
|||
use WebGUI::Asset::Template;
|
||||
use WebGUI::URL;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Package WebGUI::Macro::AdminToggle
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Macro for displaying a url to the user for turning Admin mode on and off.
|
||||
|
||||
=head2 process ( [turnOn,turnOff,template ] )
|
||||
|
||||
process takes two optional parameters for customizing the content and layout
|
||||
of the account link.
|
||||
|
||||
=head3 turnOn
|
||||
|
||||
The text displayed to the user if Admin mode is turned off and they are in the
|
||||
Turn On Admin group. If this is blank an internationalized default is used.
|
||||
|
||||
=head3 turnOff
|
||||
|
||||
The text displayed to the user if Admin mode is turned on and they are in the
|
||||
Turn On Admin group. If this is blank an internationalized default is used.
|
||||
|
||||
=head3 template
|
||||
|
||||
A template to use for formatting the link.
|
||||
|
||||
=cut
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
if (WebGUI::Grouping::isInGroup(12)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue