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

$stylesheet The filename to point the link at.

$media The media type to specify for the stylesheet

Return value

A string containing the HTML for the stylesheet import.

Related topics

▾ 1 function calls theme_stylesheet_import()

book_print in modules/book.module
Menu callback; generates printer-friendly book page with all descendants.

Code

includes/theme.inc, line 758

<?php
function theme_stylesheet_import($stylesheet, $media = 'all') {
  return '<style type="text/css" media="'. $media .'">@import "'. $stylesheet .'";</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.