You are here

function notifications_update_6 in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications.install \notifications_update_6()
  2. 6 notifications.install \notifications_update_6()
  3. 6.2 notifications.install \notifications_update_6()
  4. 6.3 notifications.install \notifications_update_6()

Update ui display options from plaintext to array

File

./notifications.install, line 348

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;
}