function _system_resource_connect in Services 6.3
Same name and namespace in other branches
- 7.3 resources/system_resource.inc \_system_resource_connect()
Returns the details of currently logged in user.
Return value
An object with an session id and user object.
1 string reference to '_system_resource_connect'
- _system_resource_definition in resources/
system_resource.inc - @file Link general system functionalities to services module.
File
- resources/
system_resource.inc, line 91 - Link general system functionalities to services module.
Code
function _system_resource_connect() {
global $user;
$return = new stdClass();
$return->sessid = session_id();
services_remove_user_data($user);
$return->user = $user;
return $return;
}