You are here

function _watchdog_triggers_clean_array in Logging and alerts 7

Same name and namespace in other branches
  1. 6.2 watchdog_triggers/watchdog_triggers.module \_watchdog_triggers_clean_array()
  2. 6 watchdog_triggers/watchdog_triggers.module \_watchdog_triggers_clean_array()
  3. 7.2 watchdog_triggers/watchdog_triggers.module \_watchdog_triggers_clean_array()

Helper function, prepares user data in an array for matching.

1 call to _watchdog_triggers_clean_array()
watchdog_triggers_watchdog in watchdog_triggers/watchdog_triggers.module
Implements hook_watchdog().

File

watchdog_triggers/watchdog_triggers.module, line 260
Provides a Trigger and Action integration for watchdog events.

Code

function _watchdog_triggers_clean_array($this_array) {
  foreach ($this_array as $key => $value) {
    $this_array[$key] = trim($value);
  }
  return $this_array;
}