function views_ui_admin_enable_page in Views (for Drupal 7) 5
1 string reference to 'views_ui_admin_enable_page'
File
- ./
views_ui.module, line 353
Code
function views_ui_admin_enable_page($view = '') {
if (isset($_GET['token']) && drupal_valid_token($_GET['token'], 'views-enable')) {
views_load_cache();
if ($view) {
$views_status = variable_get('views_defaults', array());
$views_status[$view] = 'enabled';
variable_set('views_defaults', $views_status);
menu_rebuild();
}
drupal_goto('admin/build/views');
}
else {
return drupal_access_denied();
}
}