Function Hook_import_vb3->data_to_disk
Definitions
sources/hooks/modules/admin_import/vb3.php
- Convert a VB database file to a software uploaded file (stored on disk).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$data | string | required parameter | N/A | N/A | The file data |
$filename | string | required parameter | N/A | N/A | The optimal filename |
$sections | ID_TEXT | required parameter | N/A | N/A | The upload type (e.g. cns_photos) |
$thumbnail_data | string | Blank (empty string) | N/A | N/A | Thumbnail data (blank: no thumbnail / generate one if asked) |
$obfuscate | boolean | False | N/A | N/A | Whether to obfuscate the file type |
Return
- A tuple containing the URL, and if requested, the thumbnail
- Type: array
- Set: N/A
- Range: N/A