You are here

function subscriptions_user_load in Subscriptions 6

Load (and cache) a user.

2 calls to subscriptions_user_load()
_subscriptions_content_node_mailvars in ./subscriptions_content.module
Fill given array of mailvars with given node values.
_subscriptions_mail_cron in ./subscriptions_mail.cron.inc
Implementation of hook_cron().

File

./subscriptions.module, line 660
Subscriptions module.

Code

function subscriptions_user_load($uid) {
  static $users = array();
  if (!isset($users[$uid])) {
    $users[$uid] = user_load($uid);
  }
  return $users[$uid];
}