Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4314

Drupal: load civicrm.css using drupal_add_css()

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2
    • Component/s: None
    • Labels:
      None

      Description

      In the civicrm.module, I have changed the following in civicrm_html_head():

      • $head = "<style type=\"text/css\">@import url({$config->resourceBase}css/civicrm.css);</style>\n";
        + drupal_add_css(drupal_get_path('module', 'civicrm') . '/../css/civicrm.css');

      Since civicrm.css is always loaded anyway, it provides better performance if the css is loaded through Drupal so that it can be aggregated.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: