From bf6e9f88d8fbd520cf7373fa58ad3c45c76904dd Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 6 Aug 2007 00:39:54 +0000 Subject: - Added modules section to sidebar, conforming to new layout from r1127 - Re-enabled plugins, added openstrands plugin --- lib/class/user.class.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/class/user.class.php') diff --git a/lib/class/user.class.php b/lib/class/user.class.php index 5867a4bb..fa498671 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -1102,6 +1102,25 @@ class User { return true; } // check_username + + /** + * rebuild_all_preferences + * This rebuilds the user preferences for all installed users, called by the plugin functions + */ + public static function rebuild_all_preferences() { + + $sql = "SELECT * FROM `user`"; + $db_results = Dba::query($sql); + + User::fix_preferences('-1'); + + while ($row = Dba::fetch_assoc($db_results)) { + User::fix_preferences($row['id']); + } + + return true; + + } // rebuild_all_preferences } //end user class -- cgit