diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 10:18:29 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 10:18:29 +0000 |
commit | bf1e40afcf8da4ea6e9d663531dfe3bc934483dc (patch) | |
tree | 374a9b640ab1cf21948fc466eeecda4c826882b7 /engine/lib/users.php | |
parent | b805a9bd7f1356e66fed15ced2c591cf4e9071fc (diff) | |
download | elgg-bf1e40afcf8da4ea6e9d663531dfe3bc934483dc.tar.gz elgg-bf1e40afcf8da4ea6e9d663531dfe3bc934483dc.tar.bz2 |
Added a search submenu.
git-svn-id: https://code.elgg.org/elgg/trunk@1819 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 80e9286fb..4939cc7fb 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1161,6 +1161,8 @@ extend_elgg_settings_page('user/settings/language', 'usersettings/user', 1); //register_action("user/language");
+ // Register the user type
+ register_entity_type('user','');
register_plugin_hook('usersettings:save','user','users_settings_save');
register_plugin_hook('search','all','search_list_users_by_name');
@@ -1176,7 +1178,9 @@ // Change this to set the number of users that display on the search page
$threshold = 4;
- if (!get_input('offset'))
+ $object = get_input('object');
+
+ if (!get_input('offset') && (empty($object) || $object == 'user'))
if ($users = search_for_user($tag,$threshold)) {
$countusers = search_for_user($tag,0,0,"",true);
|