Function __global->_news_import_grab_images_and_fix_links
Definitions
sources/news2.php
- Download remote images in some HTML and replace with local references under uploads/website_specific AND fix any links to other articles being imported to make them local links.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$download_images | boolean | required parameter | N/A | N/A | Whether to download images to local |
$data | string | required parameter | N/A | N/A | HTML (passed by reference) |
$imported_news | array | required parameter | N/A | N/A | Imported items, in the software's RSS-parsed format [list of maps containing full_url and import_id] (used to fix links) |