function messaging_debug_messaging_methods_alter in Messaging 6.2
Same name and namespace in other branches
- 6 messaging_debug/messaging_debug.module \messaging_debug_messaging_methods_alter()
- 6.3 messaging_debug/messaging_debug.module \messaging_debug_messaging_methods_alter()
Implementation of hook_messaging_methods_alter()
File
- messaging_debug/
messaging_debug.module, line 245 - Simple messaging using html page. Messaging method plug-in
Code
function messaging_debug_messaging_methods_alter(&$info) {
// If debug enabled, replace all send callbacks
if (variable_get('messaging_debug', 0)) {
foreach (array_keys($info) as $method) {
$info[$method]['send callback'] = _messaging_callback('messaging_debug_send_msg');
//$info[$method]['user callback'] = _messaging_callback('messaging_debug_send_user');
}
}
}