X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fimage_style_flush.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fimage_style_flush.twig;h=e561bb681e69e45df1b5bf46e1298536964d492b;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig new file mode 100644 index 000000000..e561bb681 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig @@ -0,0 +1,7 @@ +/** + * Implements hook_image_style_flush(). + */ +function {{ machine_name }}_image_style_flush($style) { + // Empty cached data that contains information about the style. + cache_clear_all('*', 'cache_mymodule', TRUE); +}