function pmperson_init in Drupal PM (Project Management) 7
Implements hook_init().
File
- pmperson/
pmperson.module, line 25
Code
function pmperson_init() {
global $user;
if ($user->uid && !isset($user->pmorganization_nid) || !isset($user->pmperson_nid)) {
_pmperson_user_load($user);
}
if (!$user->uid || !isset($user->pmperson_nid)) {
$user->pmperson_nid = -1;
}
if (!$user->uid || !isset($user->pmorganization_nid)) {
$user->pmorganization_nid = -1;
}
}