Skip to content

Instantly share code, notes, and snippets.

@nfreear
Created February 23, 2012 11:25
Show Gist options
  • Save nfreear/1892457 to your computer and use it in GitHub Desktop.
Save nfreear/1892457 to your computer and use it in GitHub Desktop.
Drupal 6.x theme hack: remove the 3rd party oEmbed consumer/client stylesheet (Garland theme) / nfreear / IET-at-OU
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars) {
$vars['tabs2'] = menu_secondary_local_tasks();
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
//NDF: Theme hack: remove the 3rd party oEmbed consumer/client stylesheet.
// (Note, too late to hack the $vars['css']['all']['module'] array.)
$vars['styles'] = preg_replace('#<link[^>]+oembed\/oembed.css[^>]+>#', '', $vars['styles']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment