Wednesday, November 25, 2015

Remove all core and contrib CSS styles from Drupal 6

Remove all core and contrib CSS styles from Drupal 6

/**
 * Implementation of hook_preprocess_page().
 */
function YOUR_MODULE_NAME_preprocess_page(&$variables) {
      $variables['css']['all']['module'] = array();
      $variables['css']['all']['theme'] = array();
      $variables['css']['print']['module'] = array();
      $variables['css']['print']['theme'] = array();
      $variables['styles'] = drupal_get_css($variables['css']);
}

No comments: