theme_stylesheet_import

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 call to theme_stylesheet_import()

2 theme calls to theme_stylesheet_import()

File

includes/theme.inc, line 758
The theme system, which controls the output of Drupal.

Code

function theme_stylesheet_import($stylesheet, $media = 'all') {
  return '<style type="text/css" media="' . $media . '">@import "' . $stylesheet . '";</style>';
}
Login or register to post comments