Révision ba3b3627
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/includes/view.inc | ||
---|---|---|
1426 | 1426 |
$this->set_arguments($args); |
1427 | 1427 |
} |
1428 | 1428 |
|
1429 |
// Trigger hook_views_pre_preview(). Allow other modules to modify the view
|
|
1429 |
// Trigger hook_views_pre_view(). Allow other modules to modify the view |
|
1430 | 1430 |
// just prior to executing the preview. |
1431 |
foreach (module_implements('views_pre_preview') as $module) {
|
|
1432 |
$function = $module . '_views_pre_preview';
|
|
1431 |
foreach (module_implements('views_pre_view') as $module) { |
|
1432 |
$function = $module . '_views_pre_view'; |
|
1433 | 1433 |
$function($this, $display_id, $this->args); |
1434 | 1434 |
} |
1435 | 1435 |
|
1436 |
// Allow hook_views_pre_preview() to set the dom_id, then ensure it is set.
|
|
1436 |
// Allow hook_views_pre_view() to set the dom_id, then ensure it is set. |
|
1437 | 1437 |
$this->dom_id = !empty($this->dom_id) ? $this->dom_id : md5($this->name . REQUEST_TIME . rand()); |
1438 | 1438 |
|
1439 | 1439 |
// Allow the display handler to set up for execution. |
... | ... | |
1892 | 1892 |
|
1893 | 1893 |
$this->save_locale_strings(); |
1894 | 1894 |
|
1895 |
// Clear caches. |
|
1896 |
views_invalidate_cache(); |
|
1895 |
// Clear the relevant caches. |
|
1896 |
cache_clear_all('views_block_items:', 'cache_views', TRUE); |
|
1897 |
views_invalidate_cache('ctools_export:views_view:' . $this->name); |
|
1897 | 1898 |
|
1898 | 1899 |
// Notify modules that this view has been saved. |
1899 | 1900 |
module_invoke_all('views_view_save', $this); |
... | ... | |
1935 | 1936 |
|
1936 | 1937 |
if ($clear) { |
1937 | 1938 |
// Clear caches. |
1938 |
views_invalidate_cache(); |
|
1939 |
cache_clear_all('views_block_items:', 'cache_views', TRUE); |
|
1940 |
views_invalidate_cache('ctools_export:views_view:' . $this->name); |
|
1939 | 1941 |
} |
1940 | 1942 |
|
1941 | 1943 |
// Notify modules that this view has been deleted. |
Formats disponibles : Unified diff
Weekly update of contrib modules