Adding basis of nl manager.
This commit is contained in:
parent
0fa97d2d9d
commit
af40a772a9
4 changed files with 98 additions and 21 deletions
21
lib/WebGUI/Content/NewsletterManager.pm
Normal file
21
lib/WebGUI/Content/NewsletterManager.pm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package WebGUI::Content::NewsletterManager;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub handler {
|
||||
my $session = shift;
|
||||
my $form = $session->form;
|
||||
|
||||
return unless $form->get('newsletter') eq 'manage';
|
||||
|
||||
my $func = 'www_' . ( $form->get('func') || 'view' );
|
||||
|
||||
my $nl = WebGUI::Newsletter::Admin->new( $session );
|
||||
return unless $nl->can( $func );
|
||||
|
||||
return $nl->$func;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue