Hi everyone, Im developing a theme and require a function to be run just once when the theme is activated (and possibly another function to be run once when the theme is deactivated (but this is less important)).
Im basically trying to shift some image files from the theme's images directory to the site's file system when the theme is activated. Is it possible to have a function in the themes template.php that is only trigged on activation/deactivation??
The only solution I can think of for now is using some preprocess function that checks the file system to see if my directory exists, if it returns false, it then copies my images over. Does anyone know of a better way to achieve this?