Commit 1d1ae8c2 authored by Lily Yan's avatar Lily Yan
Browse files

replace openatrium-powered image with uw log

parent d1ea83ff
......@@ -11,9 +11,23 @@ include_once 'uw_oa_config.features.inc';
*/
function uw_oa_config_theme_registry_alter(&$theme_registry) {
$theme_registry['oa_home_default'] = array(
'template' => 'uw-oa-home-default',
'path' => drupal_get_path('module', 'uw_oa_config') . '/templates',
'type' => 'module',
'theme path' => 'profiles/openatrium/modules/apps/oa_home',
'template' => 'uw-oa-home-default',
'path' => drupal_get_path('module', 'uw_oa_config') . '/templates',
'type' => 'module',
'theme path' => 'profiles/openatrium/modules/apps/oa_home',
);
}
/**
* Implements hook_preprocess_HOOK().
*
* Using UW logo instead of openatrium-powered.png
*/
function uw_oa_config_preprocess_html(&$variables) {
global $base_url;
$search = '';
$replace = '';
$search = $base_url . '/profiles/openatrium/modules/contrib/oa_core/modules/oa_widgets/openatrium-powered.png';
$replace = 'https://uwaterloo.ca/profiles/uw_base_profile/modules/features/uw_nav_global_header/images/university-of-waterloo-logo.png';
$variables['page']['#children'] = str_replace($search, $replace, $variables['page']['#children']);
}
\ No newline at end of file
Supports Markdown
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