function PMPAPIDrupal::flattenNavLinks in Public Media Platform API Integration 7
1 call to PMPAPIDrupal::flattenNavLinks()
- PMPAPIDrupal::pull in classes/
PMPAPIDrupal.php - Pulls from the PMP.
File
- classes/
PMPAPIDrupal.php, line 335 - Defines a class for PMP creation/transmission and retreival/parsing
Class
- PMPAPIDrupal
- @file
Code
function flattenNavLinks($nav_links) {
$links = array();
foreach ($nav_links as $nav_link) {
$index = $nav_link->rels[0];
$links[$index] = $nav_link;
}
return $links;
}