You are here

function restful_is_user_switched in RESTful 7

Determine if this is the first time we try to switch the user.

Return value

bool TRUE if this static function was already called.

1 call to restful_is_user_switched()
RestfulAuthenticationManager::switchUser in plugins/authentication/RestfulAuthenticationManager.php
Switch the user to the user authenticated by RESTful.

File

./restful.module, line 803

Code

function restful_is_user_switched() {
  $restful_switch_user =& drupal_static(__FUNCTION__, FALSE);
  if (!$restful_switch_user) {
    $restful_switch_user = TRUE;
    return FALSE;
  }
  return TRUE;
}