You are here

function _drupalgap_resource_user_logout in DrupalGap 6

Same name and namespace in other branches
  1. 7.2 drupalgap.resource.inc \_drupalgap_resource_user_logout()
  2. 7 drupalgap.resource.inc \_drupalgap_resource_user_logout()

Performs a user logout service resource call and bundles up the drupalgap system connect resource results as well.

Return value

array Array with the user logout result and drupalgap system connect result.

1 string reference to '_drupalgap_resource_user_logout'
drupalgap_services_resources in ./drupalgap.services.inc
Defines function signatures for resources available to services.

File

./drupalgap.resource.inc, line 149
This file implements the DrupalGap service resource call back functions.

Code

function _drupalgap_resource_user_logout() {
  $results = array();

  // Make a call to the user login resource.
  module_load_include('inc', 'services', 'resources/user_resource');
  $results['_user_resource_logout'] = _user_resource_logout();

  // If the user logout was successful, make a call to the drupalgap system
  // connect resource.
  if ($results['_user_resource_logout']) {
    $results['drupalgap_system_connect'] = _drupalgap_resource_system_connect();
  }
  return $results;
}