Function __global->_download_associated_media

Definitions

sources/comcode_cleanup.php

  • Filter external media, copying it locally (helper function).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$text string Yes No required parameter N/A N/A Comcode / HTML
$old_url string No No required parameter N/A N/A Old URL to download and replace

Preview

Code (PHP)

/**
 * Filter external media, copying it locally (helper function).
 *
 * @param  string $text Comcode / HTML
 * @param  string $old_url Old URL to download and replace
 */

function _download_associated_media(string &$text, string $old_url)