![]() |
Xataface Email Module 0.2
Email/Mailmerge Module for Xataface
|
00001 <?php 00002 class tables_dataface__email_blacklist { 00003 public function getPermissions($record){ 00004 00005 $dummy = new Dataface_Record('dataface__version', array()); 00006 if ( $dummy->checkPermission('email') ){ 00007 return array( 00008 'view' => 1, 00009 'list' => 1, 00010 'find' => 1, 00011 '__partial__' => 1, 00012 'edit'=> 1, 00013 'new' => 1, 00014 'delete' => 1 00015 ); 00016 } else { 00017 return Dataface_PermissionsTool::NO_ACCESS(); 00018 } 00019 } 00020 00021 public function block__before_main_column(){ 00022 echo "<h1>Manage Email Black List</h1>"; 00023 echo "<div class=\"portalHelp\">This section allows you to manage the list of people who have opted out of your mailouts. Addresses on this black-list will automatically be filtered out when sending batch emails.</div>"; 00024 echo '<div>[<a href="'.DATAFACE_SITE_HREF.'?-action=email_manage">Back to Email Management</a>]</div>'; 00025 } 00026 00027 }