1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

57 lines
1.1 KiB
PHP
Raw Normal View History

2016-04-11 00:18:29 -07:00
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2014 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; }
// v2.x Standard
class _blank_user // plugin-folder + '_user'
{
function profile($udata) // display on user profile page.
{
$var = array(
0 => array('label' => "Label", 'text' => "Some text to display", 'url'=> e_PLUGIN_ABS."_blank/blank.php")
);
return $var;
}
2018-05-24 13:05:43 -07:00
/**
2018-05-24 13:14:48 -07:00
* Experimental and subject to change without notice.
2018-05-24 13:05:43 -07:00
* @return mixed
*/
function delete()
{
2018-05-24 13:05:43 -07:00
$config['user'] = array(
2018-05-24 13:14:48 -07:00
'user_id' => '[primary]',
'user_name' => '[unique]',
'user_loginname' => '[unique]',
'user_email' => '[unique]',
2018-05-24 13:05:43 -07:00
'user_ip' => '',
// etc.
'WHERE' => 'user_id = '.USERID,
'MODE' => 'update'
);
2018-05-24 13:05:43 -07:00
$config['user_extended'] = array(
'WHERE' => 'user_extended_id = '.USERID,
'MODE' => 'delete'
);
2018-05-24 13:05:43 -07:00
return $config;
}
2016-04-11 00:18:29 -07:00
}