From a7d17c3d7bcce71d570f47b71178a689c2d486ab Mon Sep 17 00:00:00 2001 From: moshe weitzman Date: Sun, 14 Nov 2010 13:16:22 +0000 Subject: [PATCH] Rename new hook to drush_cache_clear from just cache_clear. Also add to drush.api.php --- commands/core/clear.cache.inc | 2 +- drush.api.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/core/clear.cache.inc b/commands/core/clear.cache.inc index 9661537c6a..854a5ac261 100644 --- a/commands/core/clear.cache.inc +++ b/commands/core/clear.cache.inc @@ -57,7 +57,7 @@ function drush_cache_clear_types() { } // Command files may customize $types as desired. - drush_command_invoke_all_ref('cache_clear', $types); + drush_command_invoke_all_ref('drush_cache_clear', $types); return $types; } diff --git a/drush.api.php b/drush.api.php index 7e54e52f88..d25f7cf3c2 100644 --- a/drush.api.php +++ b/drush.api.php @@ -198,6 +198,13 @@ function hook_drush_help_alter(&$command) { } } +/** + * Add/edit options to cache-clear command + */ +function hook_drush_cache_clear(&$types) { + $types['views'] = 'views_invalidate_cache'; +} + /** * @} End of "addtogroup hooks". */