You are here

function matrix_matrix_functions in Matrix field 8.2

Same name and namespace in other branches
  1. 7.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 945
Contains matrix.module.

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)'),
    ),
  );
}