function sassy_foundation_prepro_precompile_sass_alter in Sassy 7.2
Adds the foundation libraries to all SASS files if the user selected this option in the Prepro admin screen.
1 call to sassy_foundation_prepro_precompile_sass_alter()
- sassy_foundation_prepro_precompile_scss_alter in extensions/
foundation/ sassy_foundation.module - Adds the foundation libraries to all SCSS files if the user selected this option in the Prepro admin screen.
File
- extensions/
foundation/ sassy_foundation.module, line 81
Code
function sassy_foundation_prepro_precompile_sass_alter(&$contents, $file, $local) {
if (@$local['foundation_implicit_include']) {
if (strpos($contents, 'foundation/foundation') === FALSE && strpos($contents, 'foundation/*') === FALSE) {
$comment = '/* ' . t('Including foundation libraries via implicit include') . ' */';
$contents = $comment . "\n@import 'foundation/foundation';\n\n" . $contents;
}
}
}