“What the heck are Views Arguments and how do I use them?”
I’m glad you asked! Using the Arguments feature of Views increases your ability to add all kinds of coolness (and may make you cool in the process).
The big trick is parsing through the thick layer of coolness provided by the feature. If you’re dying to know, and just starting out, then watch this video for a great head start.
If you’re already familiar with Views and using Arguments, and you’re always seeking that cool little tip, then here you go.
“How do you limit a view to a User’s uid value?” Meaning, how can any given view only be seen by the logged in user who owns that content.
Here’s the Views Argument PHP Validator code.
return $argument == $user->uid;
SPECIAL NOTE! The above code can be used to limit access to a view using validation. I show this for the purpose of knowing about advanced usage. If you simply want to limit a view to the current user then use a Views Filter and filter based on the current user item.
Don’t get it? Watch the video then. ;)