You are here

function messaging_update_method_disable in Messaging 6.4

Same name and namespace in other branches
  1. 6 messaging.install \messaging_update_method_disable()
  2. 6.2 messaging.install \messaging_update_method_disable()
  3. 6.3 messaging.install \messaging_update_method_disable()
  4. 7 messaging.install \messaging_update_method_disable()

Disable a sending method and return an alternative one

1 call to messaging_update_method_disable()
messaging_method_disable in ./messaging.module
Update messaging method.

File

./messaging.install, line 151

Code

function messaging_update_method_disable($method, $replace) {

  // Check that we are not getting rid of the default method
  if ($method == messaging_method_default()) {
    variable_set('messaging_default_method', $replace);
  }
  messaging_update_method_update($method, $replace);
  return $replace;
}