Active
Project:
IE CSS Optimizer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 03:40 UTC
Updated:
14 Jul 2010 at 09:07 UTC
Being able to fully optimize for all users except user 1 would be extremely useful for theming. It would allow the superuser the ability to see changes as they're made, and he/she could then flush the cache to push those changes out to the other users.
Comments
Comment #1
Mac Clemmens commentedHere's a possible approach:
function ie_css_optimizer_preprocess_page(&$vars, $hook) {
global $user;
$preprocess_css = variable_get('preprocess_css', 0);
if ($preprocess_css == 'theme' || $preprocess_css == 'module' || $user->uid == 1) {
module_load_include('inc', 'ie_css_optimizer', 'ie_css_optimizer.pages');
_ie_css_optimizer_preprocess_page($vars, $hook);
}
}
Comment #2
johnalbinExcept when you need to theme items that are only visible for anonymous users. :-\