aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index f754f446a..1f09d69df 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -2307,4 +2307,17 @@ function clear_derivative_cache_rec($path, $pattern)
return $rmdir;
}
}
+
+function delete_element_derivatives($ids)
+{
+ // todo
+ if (!is_array($ids))
+ {
+ $ids = array($ids);
+ }
+
+ // for now I do a massive clear, to be removed once the function is
+ // properly implemented
+ clear_derivative_cache();
+}
?> \ No newline at end of file