This post is addition to already closed issue devel_themer leaves files in /tmp on the subject of cleaning the devel_themer_* files from temporary directory, files which are created when themer is used.

With the current version, 6.x-1.17, the devel_themer_* files are deleted during cron run BUT only if themer is enabled.

Depending on how everyone works/develop, depending on website, cron runs, etc., I personally found it useful to add deleting those files when the themer is being disabled and used hook_disable to do so.

If you want to use it the same way, just add the code below to devel_themer.install file:

/**
 * Implementation of hook_disable().
 */
function devel_themer_disable() {
  devel_themer_cleanup();
}

Comments

moshe weitzman’s picture

Project: Devel » Theme developer
Version: 6.x-1.17 » 6.x-1.x-dev
Component: devel_themer » Code
tjmoyer’s picture

I agree. When we're not working on theme-specific issues we have devel_themer disabled. But running cron then obviously doesn't clean out the old devel_themer_* files. This addition would be very helpful. I'll patch it into our working copy.

Thanks!

JeremyFrench’s picture

Status: Active » Closed (duplicate)

I am going to mark this a duplicate of #647536: Theme developer creates too many files as we have a number of tickets on the same subject. I will make sure that solution incorporates turning off theme developer.