You are here

function complete_profile_account_check in Complete profile 7

1 call to complete_profile_account_check()
complete_profile_page_build in ./complete_profile.module
Implements hook_page_build().

File

./complete_profile.module, line 132

Code

function complete_profile_account_check() {
  if (complete_profile_get_account_checked() > variable_get('complete_profile_check_timestamp', 0)) {
    return FALSE;
  }
  $account = user_load($GLOBALS['user']->uid);
  if (complete_profile_entity_has_empty_required_fields('user', $account)) {
    return TRUE;
  }
  else {
    complete_profile_set_account_checked(REQUEST_TIME);
    return FALSE;
  }
}