protected function UcAddressesViewsTestCase::UcAddressesSaveView in Ubercart Addresses 6.2
Saves a View and clears caches.
Parameters
view $view: The View to save.
Return value
void
7 calls to UcAddressesViewsTestCase::UcAddressesSaveView()
- UcAddressesViewsTestCase::createAccessFiltersView in tests/
uc_addresses.views.test - Creates a View for access filters test.
- UcAddressesViewsTestCase::createActionLinksView in tests/
uc_addresses.views.test - Creates a View for Action links test.
- UcAddressesViewsTestCase::createAddressRowStyleView in tests/
uc_addresses.views.test - Creates a View for address row style View.
- UcAddressesViewsTestCase::createArgumentValidatorView2 in tests/
uc_addresses.views.test - Creates a View for Argument validator test for Views 2.
- UcAddressesViewsTestCase::createArgumentValidatorView3 in tests/
uc_addresses.views.test - Creates a View for Argument validator test for Views 3.
File
- tests/
uc_addresses.views.test, line 79 - Test cases for Views integration.
Class
- UcAddressesViewsTestCase
- Test cases for Views integration.
Code
protected function UcAddressesSaveView($view) {
$view
->save();
// Rebuild menus and clear caches.
views_get_all_views(TRUE);
cache_clear_all('*', 'cache_views', TRUE);
cache_clear_all('*', 'cache_views_data', TRUE);
cache_clear_all();
menu_rebuild();
}