After save hook

Created on 25 January 2020, almost 5 years ago
Updated 5 January 2024, 12 months ago

Hi folks,

so I implemented a small wrapper around tinyPNG enabling batch compression of images via fileEntity UI (see https://github.com/FlxAlbroscheit/Bulk-tinyPNG). In order to deepen the integration with tinyPNG I need some kind of onBeforeSaveHook invoked in image_tinypng_save, ideally providing a reference to $file and meta information on the previous and new file size. This would help me to set a flag on that file and skip it, once it has already been marked as compressed.

Is there already an implemented hook functionality like that?

Kind regards!

@see https://www.drupal.org/docs/7/creating-custom-modules/creating-drupal-7-...

💬 Support request
Status

Closed: won't fix

Version

1.6

Component

Code

Created by

🇩🇪Germany FlxAlbroscheit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024