theme_stylesheet_import

  1. drupal
    1. 4.7
Versions
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 853

<?php
function theme_stylesheet_import($path, $media = 'all') {
  return '<style type="text/css" media="' . $media . '">@import "' . $path . '";</style>';
}
?>