You are here

function views_url_user in Views (for Drupal 7) 5

Handle '$user' in a URL. Any valid user wil ldo.

1 string reference to 'views_url_user'
views_views_url_tokens in ./views.module
Default Views URL tokens

File

./views.module, line 1906

Code

function views_url_user($token, $argument, $arg) {
  if (!is_numeric($arg)) {
    return FALSE;
  }

  // if a user loads, return true.
  return (bool) user_load($arg);
}