From bbb59ee3f9576a8e7bb47cfa384287b94ad63e9b Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 11 Jan 2014 13:08:26 +0000 Subject: add two triggers and user_list_backend.php and don't fail on unknown column git-svn-id: http://piwigo.org/svn/trunk@26618 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/user_list_backend.php | 15 ++++++++------- themes/smartpocket/admin/upgrade.inc.php | 5 +---- tools/triggers_list.php | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/admin/user_list_backend.php b/admin/user_list_backend.php index f3963e61f..9d18f270b 100644 --- a/admin/user_list_backend.php +++ b/admin/user_list_backend.php @@ -36,6 +36,7 @@ check_status(ACCESS_ADMINISTRATOR); * you want to insert a non-database field (for example a counter or static image) */ $aColumns = array('id', 'username', 'status', 'mail_address', 'registration_date'); +$aColumns = trigger_change('user_list_columns', $aColumns); /* Indexed column (used for fast and accurate table cardinality) */ $sIndexColumn = "id"; @@ -103,7 +104,9 @@ if ( $_REQUEST['sSearch'] != "" ) /* Individual column filtering */ for ( $i=0 ; $i array('include\template.class.php (FileCombiner::process_combinable)'), 'infos' => 'New in 2.6.', ), +array( + 'name' => 'user_list_columns', + 'type' => 'trigger_event', + 'vars' => array('string[]', 'aColumns'), + 'files' => array('admin\user_list_backend.php'), + 'infos' => 'New in 2.6.', +), +array( + 'name' => 'after_render_user_list', + 'type' => 'trigger_event', + 'vars' => array('array', 'output'), + 'files' => array('admin\user_list_backend.php'), + 'infos' => 'New in 2.6.', +), ); ?> -- cgit v1.2.3