To personalize the Style in Advertisement without mixing with themes, you can add the next line in function ad_menu (ad.module) and add your ad.css file in a ad root folder.
Line to add:
drupal_add_css('./'. drupal_get_path('module', 'ad') .'/ad.css');
like this:
/**
* Implementation of hook_menu().
*/
function ad_menu($may_cache) {
global $user;
$items = array();
drupal_add_css('./'. drupal_get_path('module', 'ad') .'/ad.css');
and you can create a ad.css like yhis
/* advertisement table styles */
.advertisement {
float: left;
padding: 5px;
}
.image-advertisement {
float: left;
padding: 5px;
}
Regards.
Comments
Comment #1
sunWhat do we gain from this? Feel free to re-open this issue.
Comment #2
rfranquet commentedTo change the theme without having to rewrite the changes.
To have changes in all themes, only personalizing the ad.css.
Upgrade the theme without lossing the CS customizations.
Regards.
Comment #3
jeremy commentedYes, I've implemented it like this in other modules -- primarily when shipping default CSS with the module. In any case, I think this could be useful, re-opening issue to look at it before the next release (whenever that may be).
Comment #4
jeremy commentedI think this would be useful, but I've decided I'm not going to be implementing it myself. Marking postponed until someone comes along with a good patch.
Comment #5
jeremy commentedRe-closing the issue, as I'm not going to implement this. There's no standard CSS included with the module. If you have CSS changes to make, it's best to do them in your theme.