1 view.inc view::update()

Perform automatic updates when loading or importing a view.

Over time, some things about Views or Backdrop data has changed. this attempts to do some automatic updates that must happen to ensure older views will at least try to work.


core/modules/views/includes/view.inc, line 317
Provides the view object type and associated methods.


An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.


function update() {
  // When views are converted automatically the base_table should be renamed
  // to have a working query.
  $this->base_table = views_move_table($this->base_table);