You are here

function apps_client_id in Apps 7

Add function description.

@todo Document function.

Return value

null|string returns null or client ID

2 calls to apps_client_id()
apps_request_manifest in ./apps.manifest.inc
Request manifest and media assets from the app server.
apps_vote_for_app in ./apps.voting.inc
Menu callback - this will be hit via an AJAX call to a menu hook

File

./apps.manifest.inc, line 190
Handles pulling and processing of app data from the server

Code

function apps_client_id() {
  $id = variable_get('apps_client_id', FALSE);
  if (!$id) {
    $id = uniqid(rand(0, 10000), TRUE);
    variable_set('apps_client_id', $id);
  }
  return $id;
}