token.drush.inc 418 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @file
  4. * Drush integration for the Token module.
  5. */
  6. /**
  7. * Implements hook_drush_cache_clear().
  8. */
  9. function token_drush_cache_clear(&$types) {
  10. if (function_exists('module_exists') && module_exists('token')) {
  11. $types['token'] = 'drush_token_cache_clear_token_info';
  12. }
  13. }
  14. /**
  15. * Clear caches internal to Token module.
  16. */
  17. function drush_token_cache_clear_token_info() {
  18. token_clear_cache();
  19. }