function matrix_matrix_functions in Matrix field 7.2
Same name and namespace in other branches
- 8.2 matrix.module \matrix_matrix_functions()
Example Implementation of hook_matrix_functions(). Register functions that should be used with the matrix module These are used for the "allowed values functions" and for "custom calculation functions"
Return value
array of allowed functions
File
- ./
matrix.module, line 949
Code
function matrix_matrix_functions() {
return array(
'allowed_values' => array(
'matrix_allowed_values_example' => t('Custom example (10\'s)'),
),
'calculation' => array(
'matrix_custom_processing_example' => t('Custom example (sum of squares)'),
),
);
}