You are here

function hook_sassy_functions in Sassy 7.2

Allows provision of additional functions for use inside the parser. Return structure should be an optionally-keyed array where each item has:

Parameters

name : the function name as it will appear in the SASS file.: @param callback : the function to be executed when it is encountered. The callback should return either a PHP or SASS primitive. The callback recieves only those arguments that are passed. In order to get additional information about the parser, use the static parameter $instance of the SassParser class.

1 function implements hook_sassy_functions()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

sassy_compass_sassy_functions in extensions/compass/sassy_compass.module
Implementation of hook_sassy_functions(). Lists all functions defined by the Compass library.
1 invocation of hook_sassy_functions()
sassy_get_functions in ./sassy.module
Returns all functions to be used inside the parser. @author Joon Park (dvessel), richthegeek, fubhy

File

./sassy.api.php, line 20
Hooks provided by the Sassy module.

Code

function hook_sassy_functions() {
  return array(
    array(
      'name' => 'theme_setting',
      // function name
      'callback' => 'sassy_get_theme_setting',
    ),
    array(
      'name' => 'variable',
      // function name
      'callback' => 'variable_get',
    ),
  );
}