Created
February 23, 2012 11:25
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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