Pending list and title for count, for dashboard widget
authorLaury GvR <laury@gaslightmedia.com>
Tue, 25 Sep 2018 13:53:57 +0000 (09:53 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 25 Sep 2018 13:53:57 +0000 (09:53 -0400)
setup/adminHooks.php

index f4dd338..4ce29ea 100644 (file)
@@ -290,6 +290,7 @@ add_filter(
                 ],
                 [
                     'id'        => 'entityAmount',
+                    'title'     => 'Number of Events',
                     'order'     => 1,
                     'template'  => 'entityAmount',
                     'table'     => $eventsTable,
@@ -305,18 +306,6 @@ add_filter(
                     'resultUrl' => $eventsEditPage,
                     'where'     => 'name'
                 ],
-                [
-                    'id'        => 'active',
-                    'title'     => "Active events",
-                    'slug'      => "active-events",
-                    'order'     => 3,
-                    'template'  => 'list',
-                    'entityID'  => 'eventID',
-                    'table'     => $eventsTable,
-                    'fields'    => "id, title, ref_dest",
-                    'where'     => 'status='.$this->config['status_numb']['Active'] . '',
-                    'resultUrl' => $eventsEditPage,
-                ],
                 [
                     'id'        => 'pending',
                     'title'     => "Pending Events",
@@ -325,10 +314,10 @@ add_filter(
                     'template'  => 'list',
                     'entityID'  => 'eventID',
                     'table'     => $eventsTable,
-                    'fields'    => "id, title, ref_dest",
+                    'fields'    => "id, name as title, ref_dest, ref_type, status",
                     'where'     => 'status='.$this->config['status_numb']['Pending'] . '',
                     'resultUrl' => $eventsEditPage,
-                ]
+                ],
             ]
         ];