Returns a list of alternative files for the given resource.

Variable Description Data type Default
$resource * The ID of the resource. integer
$orderby Which column to use for the ordering. Leave empty for the default order. string ""
$sort "asc" or "desc". string ""
$type Optional; return only those of the specified type (set when config option $alt_types is enabled) string ""

Return values

A list of alternative files.