You are here

alter.inc in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7

Same filename and directory in other branches
  1. 7.2 themes/vartheme2/includes/alter.inc

File

themes/vartheme2/includes/alter.inc
View source
<?php

/**
 * Implements hook_css_alter().
 */
function vartheme2_css_alter(&$css) {
  $user_module_path = drupal_get_path('module', 'user');
  $theme_path = drupal_get_path('theme', 'vartheme2');

  // Add user theme.
  $user_css = $user_module_path . '/user.css';
  $css[$user_css] = array(
    'data' => $user_css,
    'type' => 'file',
    'every_page' => TRUE,
    'media' => 'all',
    'preprocess' => TRUE,
    'group' => CSS_THEME,
    'browsers' => array(
      'IE' => TRUE,
      '!IE' => TRUE,
    ),
    'weight' => 0,
  );

  // Add bootstrap overrides.
  $theme_css = $theme_path . '/css/overrides.css';
  $css[$theme_css] = array(
    'data' => $theme_css,
    'type' => 'file',
    'every_page' => TRUE,
    'media' => 'all',
    'preprocess' => TRUE,
    'group' => CSS_THEME,
    'browsers' => array(
      'IE' => TRUE,
      '!IE' => TRUE,
    ),
    'weight' => 0,
  );
}

Functions

Namesort descending Description
vartheme2_css_alter Implements hook_css_alter().