D
D
DaniilKhanin2016-10-25 23:25:32
Drupal
DaniilKhanin, 2016-10-25 23:25:32

How to get a list of page style links and page script links in Drupal?

You need to get the paths of all link , script of the page, probably there is a function that returns the paths of connected styles and scripts

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WiseUkraine, 2016-10-26
@WiseUkraine

In templates, debug the $styles or $scripts variable.
Or here:
* https://api.drupal.org/api/drupal/includes!common....
* https://api.drupal.org/api/drupal/includes!common....

A
afi13, 2016-10-26
@afi13

Arrays of styles and scripts can be obtained like this:

$css = drupal_static('drupal_add_css', array());
$javascript = drupal_static('drupal_add_js', array());

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question