Function Hook_import_cms_merge->_import_upload
Definitions
sources/hooks/modules/admin_import/cms_merge.php
- Import an uploaded file from the old site to the new one.This should be called on every URLPATH db field which could contain an uploaded file. For multi fields, this should be called on every line of the field.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$path | ?URLPATH | required parameter | N/A | N/A | The contents of one line of the URLPATH db field / a path relative to the upload file (null: none) |
$file_base | PATH | required parameter | N/A | N/A | The base directory we are importing from |
Return
- Whether to treat as successful
- Type: boolean
- Set: N/A
- Range: N/A