You are here

function messaging_devel_messaging_methods_alter in Messaging 7

Implementation of hook_messaging_methods_alter()

File

messaging_devel/messaging_devel.module, line 176
Simple messaging using html page. Messaging method plug-in

Code

function messaging_devel_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_devel_send_msg');

      //$info[$method]['user callback'] = _messaging_callback('messaging_devel_send_user');
    }
  }
}