function sassy_compass_sassy_functions in Sassy 7.2
Same name and namespace in other branches
- 7.3 sassy_compass/sassy_compass.module \sassy_compass_sassy_functions()
Implementation of hook_sassy_functions(). Lists all functions defined by the Compass library.
File
- extensions/
compass/ sassy_compass.module, line 55
Code
function sassy_compass_sassy_functions() {
$functions = 'if resolve-path ';
$functions .= 'adjust-lightness scale-lightness adjust-saturation scale-saturation scale-color-value ';
$functions .= 'is-position is-position-list opposite-position ';
$functions .= '-webkit -moz -o -ms -svg -pie -css2 owg prefixed prefix ';
$functions .= 'elements-of-type ';
$functions .= 'enumerate ';
$functions .= 'font-files ';
$functions .= 'image-width image-height ';
$functions .= 'inline-image inline-font-files ';
$functions .= 'blank compact -compass-nth -compass-list -compass-list -compass-space-list -compass-list-size -compass-slice first-value-of ';
$functions .= 'nest append-selector headers ';
$functions .= 'pi sin cos tan ';
$functions .= 'comma-list prefixed-for-transition ';
$functions .= 'stylesheet-url font-url image-url';
$output = array();
$functions = explode(' ', $functions);
foreach ($functions as $function) {
$function = preg_replace('/[^a-z0-9_]/', '_', $function);
$output[$function] = array(
'name' => $function,
'callback' => 'sassy_compass__' . $function,
);
}
return $output;
}