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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.