Skip to content

Commit

Permalink
Rename new hook to drush_cache_clear from just cache_clear. Also add …
Browse files Browse the repository at this point in the history
…to drush.api.php
  • Loading branch information
massgov-outsider committed Nov 14, 2010
1 parent bfcc7eb commit a7d17c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/core/clear.cache.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
7 changes: 7 additions & 0 deletions drush.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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".
*/

0 comments on commit a7d17c3

Please sign in to comment.