It would be useful to be able to specify additional options in the options array in drupal_add_css($path, $options);

Example, there is currently no way to construct something like:
<link title="23" type="text/css" rel="alternate stylesheet" media="all" href="23.css" />

One would need to be able to specify the title and rel attributes.

Comments

Nick Robillard’s picture

This is exactly the problem I'm running into with D6. It'd be wonderful to be able to specify attributes within the $options array.

robloach’s picture

Title: Additional options to drupal_add_css(); » Additional attributes to drupal_add_css();

What happens when this CSS file is aggregated? You'd loose these addition attributes.

effulgentsia’s picture

Status: Active » Fixed

D7 has drupal_add_css() take an $options parameter which can have anything, there's hook_css_alter(), and the rendering of the LINK tags goes through the full rendering pipeline with lots of opportunity to customize.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.