function _invoice_api_session_token in Invoice 7
Page callback to generate token.
2 string references to '_invoice_api_session_token'
- invoice_api_invoice in ./
invoice_api.inc - GET / PUT / POST / DELETE an invoice
- invoice_menu in ./
invoice.module - Implements hook_menu()
File
- ./
invoice_api.inc, line 5
Code
function _invoice_api_session_token() {
drupal_add_http_header('Content-Type', 'text/plain');
print drupal_get_token('_invoice_api_session_token');
drupal_exit();
}