Révision ba3b3627
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/views.api.php | ||
---|---|---|
981 | 981 |
* @param array $args |
982 | 982 |
* An array of arguments passed into the view. |
983 | 983 |
*/ |
984 |
function hook_views_pre_preview(&$view, &$display_id, &$args) {
|
|
984 |
function hook_views_pre_view(&$view, &$display_id, &$args) { |
|
985 | 985 |
// Change the display if the acting user has 'administer site configuration' |
986 | 986 |
// permission, to display something radically different. |
987 | 987 |
// (Note that this is not necessarily the best way to solve that task. Feel |
... | ... | |
1260 | 1260 |
* This hook should fire whenever a view is enabled, disabled, created, |
1261 | 1261 |
* updated, or deleted. |
1262 | 1262 |
* |
1263 |
* @param string $cid |
|
1264 |
* The cache identifier that is being cleared. |
|
1265 |
* |
|
1263 | 1266 |
* @see views_invalidate_cache() |
1264 | 1267 |
*/ |
1265 |
function hook_views_invalidate_cache() { |
|
1268 |
function hook_views_invalidate_cache($cid) {
|
|
1266 | 1269 |
cache_clear_all('views:*', 'cache_mymodule', TRUE); |
1267 | 1270 |
} |
1268 | 1271 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules