Replaces the logo with a color-altered logo.
A theme that supports the color module should call this function from its THEME_process_page() function, so that the correct logo is included when page.tpl.php is rendered.
theme()
function _color_page_alter(&$vars) {
global $theme_key;
// Override logo.
$logo = config('color.' . $theme_key)
->get('logo');
if ($logo && $vars['logo'] && preg_match('!' . $theme_key . '/logo.png$!', $vars['logo'])) {
$vars['logo'] = file_create_url($logo);
}
}