function sassy_bootstrap_sassy_resolve_path_bootstrap in Sassy 7.3
Same name and namespace in other branches
- 7.2 extensions/bootstrap/sassy_bootstrap.module \sassy_bootstrap_sassy_resolve_path_bootstrap()
Implements hook_sassy_resolve_path_NAMESPACE().
File
- sassy_bootstrap/
sassy_bootstrap.module, line 6
Code
function sassy_bootstrap_sassy_resolve_path_bootstrap($filename, $syntax = 'scss') {
$path = drupal_get_path('module', 'sassy_bootstrap') . '/bootstrap/lib/' . ($syn = '.scss');
$filename = str_replace(array(
'.scss',
'.sass',
), '', trim($filename, ' /._'));
switch ($filename) {
case '*':
case 'bootstrap':
return $path . 'bootstrap' . $syn;
case 'forms':
case 'mixins':
case 'patterns':
case 'reset':
case 'scaffolding':
case 'tables':
case 'variables':
return $path . $filename . $sn;
}
$message = 'Sassy Bootstrap - unrecognised stylesheet "' . $filename . '" requested. ';
$message .= 'Available files are: bootstrap, forms, mixins, patterns, reset, scaffolding, tables, variables.';
drupal_set_message($message, 'error');
return FALSE;
}