You are here

function hook_ctools_math_expression_functions_alter in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 ctools.api.php \hook_ctools_math_expression_functions_alter()

Alter the available functions to be used in ctools math expression api.

One usecase would be to create your own function in your module and allow to use it in the math expression api.

Parameters

$functions: An array which has the functions as value.

1 invocation of hook_ctools_math_expression_functions_alter()
ctools_math_expr::ctools_math_expr in includes/math-expr.inc

File

./ctools.api.php, line 93
Hooks provided by the Chaos Tool Suite.

Code

function hook_ctools_math_expression_functions_alter(&$functions) {

  // Allow to convert from degrees to radiant.
  $functions[] = 'deg2rad';
}