theme_stylesheet_import
- Versions
- 4.6
theme_stylesheet_import($stylesheet, $media = 'all')- 4.7
theme_stylesheet_import($path, $media = 'all')
Import a stylesheet using @import.
Parameters
$path The path to the stylesheet.
$media The media type to specify for the stylesheet
Return value
A string containing the HTML for the stylesheet import.
Related topics
Code
includes/theme.inc, line 852
<?php
function theme_stylesheet_import($path, $media = 'all') {
return '<style type="text/css" media="'. $media .'">@import "'. $path .'";</style>';
}
?>Login or register to post comments 