function views_ui_edit_page in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 8.3 views_ui/admin.inc \views_ui_edit_page()
- 6.3 includes/admin.inc \views_ui_edit_page()
- 6.2 includes/admin.inc \views_ui_edit_page()
Page callback for the Edit View page.
1 string reference to 'views_ui_edit_page'
- views_ui_menu in ./
views_ui.module - Implements hook_menu().
File
- includes/
admin.inc, line 928 - Provides the Views' administrative interface.
Code
function views_ui_edit_page($view, $display_id = NULL) {
$display_id = views_ui_edit_page_display($view, $display_id);
if (!in_array($display_id, array(
MENU_ACCESS_DENIED,
MENU_NOT_FOUND,
))) {
$build = array();
$build['edit_form'] = drupal_get_form('views_ui_edit_form', $view, $display_id);
$build['preview'] = views_ui_build_preview($view, $display_id, FALSE);
}
else {
$build = $display_id;
}
return $build;
}