Adding declined status just for event plugin.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 14:23:23 +0000 (10:23 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 14:23:23 +0000 (10:23 -0400)
Using a different name for the event status.

classes/data/dataEvents.php
config/plugin.ini

index 84b5191..ef35bd8 100644 (file)
@@ -139,7 +139,7 @@ class GlmDataEvents extends GlmDataAbstract
             'status' => array (
                 'field' => 'status',
                 'type' => 'list',
-                'list' => $this->config['status'],
+                'list' => $this->config['event_status'],
                 'required' => true,
                 'default' => $this->config['status_numb']['Pending'],
                 'use' => 'a'
index 4274c07..f2675dc 100644 (file)
@@ -2,7 +2,21 @@
 ; Main Configuration File
 ; Gaslight Media Members Database Events Add-On Plugin
 ;
-; Place any static configuration parameters here.  
+; Place any static configuration parameters here.
 ;
 
 [common]
+
+; Entry Status Types
+;
+event_status[10] = 'Active'
+event_status[20] = 'Pending Review'
+event_status[30] = 'Inactive'
+event_status[40] = 'Declined'
+event_status[90] = 'Archived'
+
+event_status_numb['Active'] = 10
+event_status_numb['Pending'] = 20
+event_status_numb['Inactive'] = 30
+event_status_numb['Declined'] = 40
+event_status_numb['Archived'] = 90