You are here

function messaging_debug_messaging_methods_alter in Messaging 6

Same name and namespace in other branches
  1. 6.2 messaging_debug/messaging_debug.module \messaging_debug_messaging_methods_alter()
  2. 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 229
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');
    }
  }
}