You are here

function messaging_update_method_update in Messaging 6

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

Udate sending method, change for a new one

2 calls to messaging_update_method_update()
messaging_update_6002 in ./messaging.install
Update sending methods names
messaging_update_method_disable in ./messaging.install
Disable a sending method and return an alternative one

File

./messaging.install, line 146

Code

function messaging_update_method_update($old, $new) {

  // Replace some variables
  if ($old == variable_get('messaging_default_method', NULL)) {
    variable_set('messaging_default_method', $new);
  }
  module_invoke_all('messaging', 'method update', $old, $new);
}