Permalink
Browse files

Re-enabled a crude subscribe/unsubscribe.

  • Loading branch information...
1 parent 23d74ee commit 3569727f3ad20d0c057462c3b4ab1a4ae4167bd9 @dendeffe committed May 18, 2011
View
@@ -1,4 +1,9 @@
<?php
+Director::addRules(100, array(
+ 'newslettertools//$Action' => 'Def_NewsLetter_Tools'
+));
+
+
/*
@@ -25,7 +25,9 @@ public function getCMSFields() {
$f->addFieldToTab('Root.Content.Lijsten', $listField);
return $f;
}
-
+}
+
+class Def_Newsletter_Controller extends Page_Controller {
}
//class NewsLetterPage Extends Page {
@@ -24,4 +24,7 @@ public function getCMSFields() {
return $f;
}
+}
+
+class Def_Newsletter_SubscriberList_Controller Extends Page_Controller {
}
@@ -0,0 +1,16 @@
+<?php
+
+class Def_Newsletter_Subscriber_Unapproved extends DataObject {
+ static $db = array (
+ 'Email' => 'Text',
+ 'List' => 'Int',
+ 'Password' => 'Text'
+ );
+
+ public function getCMSFields_forPopup()
+ {
+ return new FieldSet(
+ new TextField('Email')
+ );
+ }
+}
Oops, something went wrong.

0 comments on commit 3569727

Please sign in to comment.