You are here

function _tracker_myrecent_access in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/tracker/tracker.module \_tracker_myrecent_access()
  2. 7 modules/tracker/tracker.module \_tracker_myrecent_access()

Access callback for tracker/%user_uid_optional

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

File

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

Code

function _tracker_myrecent_access($account) {

  // This path is only allowed for authenticated users looking at their own posts.
  return $account->uid && $GLOBALS['user']->uid == $account->uid && user_access('access content');
}