You are here

function hook_raven_sanitize_fields_alter in Raven: Sentry Integration 7.3

Same name and namespace in other branches
  1. 7 raven.api.php \hook_raven_sanitize_fields_alter()
  2. 7.2 raven.api.php \hook_raven_sanitize_fields_alter()

Alter the array of fields that should be sanitized.

The field will be used in a regular expression, so you may need to run preg_quote($field, '/') on the field name.

Parameters

array $fields: A reference to array containing the field names.

1 function implements hook_raven_sanitize_fields_alter()

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

raven_test_raven_sanitize_fields_alter in tests/raven_test.module
Implements hook_raven_sanitize_fields_alter().
1 invocation of hook_raven_sanitize_fields_alter()
raven_get_client in ./raven.module
Returns the Sentry PHP client instance, or NULL if it could not be created.

File

./raven.api.php, line 68
Sample hooks demonstrating usage of Raven.

Code

function hook_raven_sanitize_fields_alter(array &$fields) {
  $fields[] = 'data';
}