function messaging_update_1 in Messaging 5
Same name and namespace in other branches
- 6.4 messaging.install \messaging_update_1()
- 6 messaging.install \messaging_update_1()
- 6.2 messaging.install \messaging_update_1()
- 6.3 messaging.install \messaging_update_1()
Update method settings
File
- ./
messaging.install, line 126
Code
function messaging_update_1() {
$ret = array();
if ($settings = variable_get('messaging_methods', array())) {
foreach ($settings as $key => $info) {
$info['subject_filter'] = $info['filter'];
variable_set('messaging_method_' . $key, $info);
}
drupal_set_message('Your messaging settings have been updated. Please review them.');
}
return $ret;
}