You are here

function textimage_cron in Textimage 7.3

Same name and namespace in other branches
  1. 8.4 textimage.module \textimage_cron()
  2. 8.3 textimage.module \textimage_cron()

Implements hook_cron().

File

./textimage.module, line 235
Textimage - Provides text to image manipulations.

Code

function textimage_cron() {

  // Remove temporary, uncached, image files.
  if (file_exists(_textimage_get_store_path('uncached'))) {
    if (file_unmanaged_delete_recursive(_textimage_get_store_path('uncached'))) {
      _textimage_diag(t("Textimage temporary image files removed."), WATCHDOG_NOTICE);
    }
    else {
      _textimage_diag(t("Textimage could not remove temporary image files."), WATCHDOG_ERROR, __FUNCTION__);
    }
  }
}