From: Laury GvR Date: Tue, 25 Sep 2018 13:53:57 +0000 (-0400) Subject: Pending list and title for count, for dashboard widget X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3a80559e7aa8994dbc413f5cf62958998b80331f;p=WP-Plugins%2Fglm-member-db-events.git Pending list and title for count, for dashboard widget --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index f4dd338..4ce29ea 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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, - ] + ], ] ];