# HG changeset patch # User Dan # Date 1280417338 14400 # Node ID 31ff2e5351b0e229d9d814ced06f3262916bc00c # Parent f3933b3552297ce7093e29e4f21fbf0229bb83ad Added ability for plugins to hook into admin user manager diff -r f3933b355229 -r 31ff2e5351b0 plugins/admin/UserManager.php --- a/plugins/admin/UserManager.php Mon Jul 26 20:10:01 2010 -0400 +++ b/plugins/admin/UserManager.php Thu Jul 29 11:28:58 2010 -0400 @@ -198,6 +198,13 @@ $to_update_users['activation_key'] = sha1($session->dss_rand()); } + // All builtin checks passed, let plugins do what they want + $code = $plugins->setHook('acp_usermanager_form_post'); + foreach ( $code as $cmd ) + { + eval($cmd); + } + if ( count($errors) < 1 ) { $to_update_users_extra = array(); @@ -1025,6 +1032,12 @@ + + + {PLUGINS} + + +