You are here

function drush_tinypng_post_pm_enable in TinyPNG 7

Implements drush_MODULE_post_COMMAND().

File

./tinypng.drush.inc, line 45
Drush integration for TinyPNG.

Code

function drush_tinypng_post_pm_enable() {
  $modules = func_get_args();

  // Download library if TinyPNG module has been enabled.
  if (in_array('tinypng', $modules)) {
    drush_tinypng_tinify_download();
  }
}