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