You are here

function complete_profile_page_build in Complete profile 7

Implements hook_page_build().

File

./complete_profile.module, line 55

Code

function complete_profile_page_build() {

  // First check if we can redirect in the first place before inspecting the
  // user fields. Then check for empty fields, and then get the redirect.
  if (complete_profile_can_redirect() && complete_profile_account_check() && ($redirect = complete_profile_get_redirect())) {
    drupal_goto($redirect['path'], $redirect['options']);
  }
}