You are here

function messaging_update_6008 in Messaging 6.4

Update method filter settings

File

./messaging.install, line 355

Code

function messaging_update_6008() {
  messaging_include('text.inc');
  foreach (module_invoke_all('messaging', 'send methods') as $method => $info) {
    $properties = variable_get('messaging_method_' . $method, array()) + array(
      'name' => $info['name'],
    );
    $properties['filter'] = isset($info['filter']) ? $info['filter'] : 'messaging_plaintext';
    variable_set('messaging_filters_' . $method, $properties);
  }
  variable_del('messaging_default_filter');
  return array();
}