diff options
author | rub <rub@piwigo.org> | 2007-06-22 21:02:55 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-06-22 21:02:55 +0000 |
commit | a8150ba6a26355cedf4f943661a57aa385342416 (patch) | |
tree | f910f05dc4469e7431ad636ab2834b9606e36e84 /admin/user_list.php | |
parent | 843d56e38ec174d364a43c0233e1d55a4a1b9c4b (diff) |
Resolved issue 0000711: Add triggers and template block in order to add quickly new informations
git-svn-id: http://piwigo.org/svn/trunk@2041 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/user_list.php')
-rw-r--r-- | admin/user_list.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/user_list.php b/admin/user_list.php index fa670efc0..1c7a752d4 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -778,6 +778,7 @@ $template->assign_vars(array('NAVBAR' => $navbar)); $profile_url = get_root_url().'admin.php?page=profile&user_id='; $perm_url = get_root_url().'admin.php?page=user_perm&user_id='; +$visible_user_list = array(); foreach ($page['filtered_users'] as $num => $local_user) { // simulate LIMIT $start, $conf['users_page'] @@ -790,6 +791,13 @@ foreach ($page['filtered_users'] as $num => $local_user) break; } + $visible_user_list[] = $local_user; +} + +$visible_user_list = trigger_event('loc_visible_user_list', $visible_user_list); + +foreach ($visible_user_list as $num => $local_user) +{ $groups_string = preg_replace( '/(\d+)/e', "\$groups['$1']", @@ -833,6 +841,7 @@ foreach ($page['filtered_users'] as $num => $local_user) ? $lang['is_high_enabled'] : $lang['is_high_disabled'] ) ); + trigger_action('loc_assign_block_var_local_user_list', $local_user); } // +-----------------------------------------------------------------------+ |