function hook_views_view_presave

Allow modules to alter a view prior to being saved.

Related topics

1 invocation of hook_views_view_presave()
view::save in includes/view.inc
Save the view to the database.

File

./views.api.php, line 1319

Code

function hook_views_view_presave($view) {
    // Do some adjustments to the view. Handle with care.
    if (mymodule_check_view($view)) {
        mymodule_do_some_voodoo($view);
    }
}