function notifications_update_6 in Notifications 5
Same name and namespace in other branches
- 6.4 notifications.install \notifications_update_6()
- 6 notifications.install \notifications_update_6()
- 6.2 notifications.install \notifications_update_6()
- 6.3 notifications.install \notifications_update_6()
Update ui display options from plaintext to array
File
- ./
notifications.install, line 228
Code
function notifications_update_6() {
$ret = array();
foreach (node_get_types() as $type => $info) {
$option = variable_get('notifications_node_ui_' . $type, 0);
if ($option && !is_array($option)) {
variable_set('notifications_node_ui_' . $type, array(
$option,
));
}
}
return $ret;
}