mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Plugin builder now allows for exclusion of specific tables from admin area generator.
This commit is contained in:
parent
f101eb47f3
commit
44874d91b0
@ -2787,7 +2787,7 @@ TEMPLATE;
|
|||||||
{
|
{
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
$modes = array("main"=>"Main Area","cat"=>"Categories","other1"=>"Other 1","other2"=>"Other 2","other3"=>"Other 3","other4"=>"Other 4");
|
$modes = array("main"=>"Main Area","cat"=>"Categories","other1"=>"Other 1","other2"=>"Other 2","other3"=>"Other 3","other4"=>"Other 4", 'exclude'=>'Exclude this table');
|
||||||
|
|
||||||
// echo "TABLE COUNT= ".$this->tableCount ;
|
// echo "TABLE COUNT= ".$this->tableCount ;
|
||||||
|
|
||||||
@ -3270,7 +3270,7 @@ class ".$thePlugin."_admin extends e_admin_dispatcher
|
|||||||
|
|
||||||
foreach($_POST as $table => $vars) // LOOP Through Tables.
|
foreach($_POST as $table => $vars) // LOOP Through Tables.
|
||||||
{
|
{
|
||||||
if(vartrue($vars['mode']))
|
if(vartrue($vars['mode']) && $vars['mode'] != 'exclude')
|
||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
'".$vars['mode']."' => array(
|
'".$vars['mode']."' => array(
|
||||||
@ -3301,7 +3301,7 @@ $text .= "
|
|||||||
";
|
";
|
||||||
foreach($_POST as $table => $vars) // LOOP Through Tables.
|
foreach($_POST as $table => $vars) // LOOP Through Tables.
|
||||||
{
|
{
|
||||||
if(vartrue($vars['mode']))
|
if(vartrue($vars['mode']) && $vars['mode'] != 'exclude')
|
||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
'".$vars['mode']."/list' => array('caption'=> LAN_MANAGE, 'perm' => 'P'),
|
'".$vars['mode']."/list' => array('caption'=> LAN_MANAGE, 'perm' => 'P'),
|
||||||
@ -3368,7 +3368,10 @@ $text .= "
|
|||||||
$tableCount = 1;
|
$tableCount = 1;
|
||||||
foreach($_POST as $table => $vars) // LOOP Through Tables.
|
foreach($_POST as $table => $vars) // LOOP Through Tables.
|
||||||
{
|
{
|
||||||
if($table == 'pluginPrefs')
|
|
||||||
|
|
||||||
|
|
||||||
|
if($table == 'pluginPrefs' || $vars['mode'] == 'exclude')
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user