mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Example addons added to _blank plugin.
This commit is contained in:
49
e107_plugins/_blank/e_notify.php
Normal file
49
e107_plugins/_blank/e_notify.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// e107::lan('_blank','notify',true);
|
||||
|
||||
// v2.x Standard
|
||||
class _blank_notify extends notify
|
||||
{
|
||||
function config()
|
||||
{
|
||||
|
||||
$config = array();
|
||||
|
||||
$config[] = array(
|
||||
'name' => "Notify about something",
|
||||
'function' => "customNotify",
|
||||
'category' => ''
|
||||
);
|
||||
|
||||
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
||||
function customNotify($data)
|
||||
{
|
||||
$subject = "My Notification";
|
||||
$message = print_a($data,true);
|
||||
$this->send('customNotify', $subject, $message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user