Function __global->reorganise_uploads

Definitions

sources/uploads2.php

  • Reorganise upload paths.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$content_type string required parameter N/A N/A Content type
$upload_directory string required parameter N/A N/A Upload directory
$upload_field string required parameter N/A N/A Upload field
$where ?array [] N/A N/A Limit reorganisation to rows matching this WHERE map (null: none)
$append_content_type_to_upload_dir boolean False N/A N/A "$upload_directory" should become "$upload_directory/$content_type"
$tolerate_errors boolean False N/A N/A Whether to tolerate missing files (false = give an error)
$fake_cma_info ?array Null N/A N/A A map of CMA info overriddes, for complicated cases (null: real info from $content_type)

Return

  • A map of db_table:id to the new upload URL
  • Type: array
  • Set: N/A
  • Range: N/A