function view::copy

Same name in other branches
  1. 6.x-3.x includes/view.inc \view::copy()

Make a copy of this view with IDs, handlers sanitized.

I'd call this clone() but it's reserved.

File

includes/view.inc, line 2018

Class

view
An object to contain all of the data to generate a view.

Code

public function copy() {
    $code = $this->export();
    eval($code);
    return $view;
}