1
0
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:
Cameron
2016-04-11 00:18:29 -07:00
parent 5e862682be
commit a05d127375
11 changed files with 526 additions and 0 deletions

View 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);
}
}
?>