Function Hook_translation_google_translate->_google_translate_api_request
Definitions
sources/hooks/systems/translation/google_translate.php
- Call a Google Translate API.Needs to be public as it is used in a callback.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$url | URLPATH | required parameter | N/A | N/A | API URL to call |
$request | ?array | Null | N/A | N/A | Request data (null: GET request) |
$errormsg | ?string | Null | N/A | N/A | Error message (returned by reference) (null: not set yet) |
Return
- Result (null: some kind of error)
- Type: ?array
- Set: N/A
- Range: N/A