You are here

function _drupalgap_resource_system_connect in DrupalGap 7

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

Performs service calls to various resources and bundles them all up so the mobile device gets results, settings and permissions in one request.

Parameters

$created: Integer The time at which the last system connect call took place. This is used to determine what, if any, content/comments/etc have been updated since the last call took place from the mobile app.

Return value

array Array of service resources, settings and permissions.

3 calls to _drupalgap_resource_system_connect()
_drupalgap_resource_user_login in ./drupalgap.resource.inc
Performs a user login service resource call and bundles up the drupalgap system connect resource results as well.
_drupalgap_resource_user_logout in ./drupalgap.resource.inc
Performs a user logout service resource call and bundles up the drupalgap system connect resource results as well.
_drupalgap_resource_user_register in ./drupalgap.resource.inc
Performs a user registration service resource call and bundles up the drupalgap system connect resource results as well.
1 string reference to '_drupalgap_resource_system_connect'
drupalgap_services_resources in ./drupalgap.services.inc
Defines function signatures for resources available to services.

File

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

Code

function _drupalgap_resource_system_connect($created = null) {
  global $user;
  $results = drupalgap_system_connect_extras();

  // Give other modules an opportunity to edit the system connect results.
  drupal_alter('drupalgap_system_connect', $results);
  return $results;
}