summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Petsovits2007-09-25 15:20:29 (GMT)
committer Jakob Petsovits2007-09-25 15:20:29 (GMT)
commitf2cffe5517b4009229380b442c64a9ec9012455e (patch)
treef4de252988af4f5dcd99dafe297461a1948f5111
parent4f4145981322117359289ae24faa410dbaa100a3 (diff)
Provide an update function that clears the menu cache,
so that the newly introduced JavaScript callback path works.
-rw-r--r--filefield.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/filefield.install b/filefield.install
index e19e4e0..faf9c2d 100644
--- a/filefield.install
+++ b/filefield.install
@@ -13,8 +13,6 @@ function filefield_update_1() {
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
-
-
$fields = content_fields();
foreach ($fields as $field) {
@@ -29,5 +27,9 @@ function filefield_update_1() {
}
db_query('DELETE FROM {cache}');
return $ret;
+}
+function filefield_update_2() {
+ cache_clear_all('*', 'cache_menu', TRUE);
+ return array();
}