function sbp_users_user in Search by Page 6
Implements hook_user().
If the user account/profile is being updated, mark the user path as "time to reindex". If it's deleted, remove from index.
File
- ./
sbp_users.module, line 225 - Module file for Search by Page Users, a sub-module for Search by Page.
Code
function sbp_users_user($op, &$edit, &$account, $category = NULL) {
switch ($op) {
case 'update':
search_by_page_force_reindex('sbp_users', $account->uid);
break;
case 'delete':
search_by_page_force_remove('sbp_users', $account->uid);
break;
}
}