Implements hook_page_build().
function system_page_build(&$page) {
$path = drupal_get_path('module', 'system');
// Adjust the weights to load these early.
$page['#attached']['css'][$path . '/css/system.module.css'] = array(
'weight' => CSS_COMPONENT - 10,
'every_page' => TRUE,
);
$page['#attached']['css'][$path . '/css/system.theme.css'] = array(
'weight' => CSS_SKIN - 10,
'every_page' => TRUE,
);
if (path_is_admin(current_path())) {
$page['#attached']['css'][$path . '/css/system.admin.css'] = array(
'weight' => CSS_COMPONENT - 10,
);
}
}