1 date.install date_update_1001()

Remove legacy Date API and Date Popup configurations.

File

core/modules/date/date.install, line 94
Install, update and uninstall functions for the Date module.

Code

function date_update_1001() {
  config('date_api.settings')->delete();
  config('date.settings')->delete();

  // Date now only ships with a single timepicker.
  update_variable_del('date_popup_timepicker');

  // Remove old system table entries for merged in modules.
  db_query("DELETE FROM {system} WHERE name IN ('date_api', 'date_popup', 'date_views') AND type = 'module'");
}