Commit da0d7fe5 authored by Lily Yan's avatar Lily Yan
Browse files

Use hook_page_alter to fix no logo error

parent eeec4d76
......@@ -48,11 +48,11 @@ function uw_virtual_site_homepage_page_alter(&$page) {
$continue = true;
if(isset($page['uw-virtual-site-homepage']['field_uw_faculty_list_logo'][0]['#markup'])) {
$site_links = _uw_virtual_site_homepage_get_site_links();
$site_links = _uw_virtual_site_homepage_get_site_links();
if (isset($site_links[$page['uw-virtual-site-homepage']['field_uw_faculty_list_logo'][0]['#markup']])) {
$site_link = $site_links[$page['uw-virtual-site-homepage']['field_uw_faculty_list_logo'][0]['#markup']];
$page['uw-virtual-site-homepage']['uw_scholar_row']['site_link'] = $site_link;
}
}
// If there are banners, process them.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment