function hook_views_view_delete in Views (for Drupal 7) 7.3
Allow modules to respond to a view being deleted or reverted.
Related topics
1 invocation of hook_views_view_delete()
- view::delete in includes/
view.inc - Delete the view from the database.
File
- ./
views.api.php, line 1297 - Describe hooks provided by the Views module.
Code
function hook_views_view_delete($view) {
// Make a watchdog entry.
watchdog('views', 'The view @name was deleted by @user at @time', array(
'@name' => $view->name,
'@user' => $GLOBALS['user']->name,
'@time' => format_date(time()),
));
}