metatag.drush.inc 430 B

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