function restws_session_token in RESTful Web Services 7
Same name and namespace in other branches
- 7.2 restws.module \restws_session_token()
Page callback: returns a session token for the currently active user.
1 string reference to 'restws_session_token'
- restws_menu in ./
restws.module - Implements hook_menu().
File
- ./
restws.module, line 416 - RESTful web services module.
Code
function restws_session_token() {
drupal_add_http_header('Content-Type', 'text/plain');
print drupal_get_token('restws');
drupal_exit();
}