You are here

function tracker_track_user in Drupal 5

Same name and namespace in other branches
  1. 4 modules/tracker.module \tracker_track_user()

Menu callback. Prints a listing of active nodes on the site.

1 string reference to 'tracker_track_user'
tracker_menu in modules/tracker/tracker.module
Implementation of hook_menu().

File

modules/tracker/tracker.module, line 56
Enables tracking of recent posts for users.

Code

function tracker_track_user() {
  if ($account = user_load(array(
    'uid' => arg(1),
  ))) {
    if ($account->status || user_access('administer users')) {
      drupal_set_title(check_plain($account->name));
      return tracker_page($account->uid);
    }
    else {
      drupal_access_denied();
    }
  }
  else {
    drupal_not_found();
  }
}