CSS doesn't work when module is in sites/all/modules directory

sabalaskey - April 28, 2008 - 14:24
Project:Vocabulary Index
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Xano
Status:closed
Description

The CSS inclusion is hardcoded to /modules directory, therefore it doesn't get called when you put the module into the sites/all/modules directory. Simple fix is included below. File is vocabindex.view.inc. Replace line 74 with:

drupal_add_css(drupal_get_path('module', 'vocabindex') . '/vocabindex-style.css', 'module', 'all', FALSE);

Regards, Bruce

#1

Xano - May 10, 2008 - 15:35
Assigned to:Anonymous» Xano
Status:active» patch (to be ported)

The local working copy has been fixed. Will be committed soon.

#2

Xano - May 10, 2008 - 18:38
Version:6.x-2.x-dev» 6.x-1.x-dev
Priority:normal» minor
Status:patch (to be ported)» fixed

Committed to 6.x-1.x-dev.

#3

Anonymous (not verified) - May 24, 2008 - 18:42
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.