Function createRelatedItemsResultArray
Helper function for getRelatedItems() only. Returns an array with array for each item with name, album (images only), type and weight (search weight value) Excludes the current item itself.
array |
$result |
array with search results |
string |
$type |
"albums", "images", "news", "pages" |