function sassy_get_functions in Sassy 7.3
Same name and namespace in other branches
- 7.2 sassy.module \sassy_get_functions()
1 call to sassy_get_functions()
- sassy_parse in ./
sassy.module - Parse a SCSS string and transform it into CSS.
File
- ./
sassy.module, line 164 - Handles compiling of .sass / .scss files.
Code
function sassy_get_functions() {
$functions =& drupal_static(__FUNCTION__);
if (!isset($function)) {
foreach (module_invoke_all('sassy_functions') as $name => $info) {
$info = (object) $info;
$functions[$info->name] = $info->callback;
}
foreach (array_merge($GLOBALS['base_theme_info'], array(
$GLOBALS['theme_info'],
)) as $info) {
$function = $info->info['name'] . '_sassy_functions';
if (function_exists($function) && ($data = $function())) {
foreach ($data as $key => $item) {
$info = (object) $info;
$functions[$info->name] = $info->callback;
}
}
}
}
return $functions;
}