You are here

function sassy_compass_sassy_functions in Sassy 7.3

Same name and namespace in other branches
  1. 7.2 extensions/compass/sassy_compass.module \sassy_compass_sassy_functions()

Implements hook_sassy_functions().

File

sassy_compass/sassy_compass.module, line 55

Code

function sassy_compass_sassy_functions() {
  $functions = 'adjust-lightness scale-lightness adjust-saturation scale-saturation ie-hex-str 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 .= '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;
}