Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for question about the user entity. Don't use it for a generic question about, for example, what users can do on a site.
0
votes
0
answers
27
views
What is the appropriate hook for hiding/editing user data?
We have a field on the user that I just need to hide one field from. This user object may be loaded from an API service endpoint or just in a regular login. Is there a hook I can use to obfuscate the …
0
votes
Logout user programmatically without redirect
Just throwing this in for Drupal 7, since Google sent me here (I am aware the question is for Drupal 8, but this answer should be valid for 8 too?)
user_logout_current_user(); appears to perform this …