Commit 5190678d authored by Dries's avatar Dries

- Patch #100563 by m3avrck: improved phpDoc of drupal_add_css.

parent af38c1c0
......@@ -1385,13 +1385,23 @@ function drupal_add_link($attributes) {
* Adds a CSS file to the stylesheet queue.
*
* @param $path
* (optional) The path to the CSS file relative to the base_path(), e.g., /modules/devel/devel.css.
* (optional) The path to the CSS file relative to the base_path(), e.g.,
* /modules/devel/devel.css.
* @param $type
* (optional) The type of stylesheet that is being added. Types are: module or theme.
* (optional) The type of stylesheet that is being added. Types are: module
* or theme.
* @param $media
* (optional) The media type for the stylesheet, e.g., all, print, screen.
* @param $preprocess
* (optional) Should this CSS file be aggregated and compressed if admin has enabled this feature?
* (optional) Should this CSS file be aggregated and compressed if admin has
* enabled this feature? Rules for preprocessing CSS files:
* - CSS files that style content should be preprocessed. This applies to
* both modules and themes that include additional CSS files.
* - Theme CSS files that are needed on just about every page should be
* preprocessed.
* - Styles used on only a few pages should not be preprocessed. The extra
* overhead for a small, extra stylesheet is nothing compared to having
* to download a completely separate preprocessed file.
* @return
* An array of CSS files.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment