diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-15 03:39:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-15 03:39:42 +0000 |
commit | 71c4e3ec62427e562965561f5a7b13aa64737595 (patch) | |
tree | 312ab891d1692d08008ab3bb20a8bb22f44d1f06 /includes/file.inc | |
parent | 0afbd86d32a94c3b11c6cbe4204e66d8cfa1da3a (diff) | |
download | brdo-71c4e3ec62427e562965561f5a7b13aa64737595.tar.gz brdo-71c4e3ec62427e562965561f5a7b13aa64737595.tar.bz2 |
#968458 by Dave Reid, sun, fago: Add Missing hook_entity_presave().
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/file.inc b/includes/file.inc index e8db63448..4f7a4c3be 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -579,6 +579,9 @@ function file_save(stdClass $file) { $file->original = entity_load_unchanged('file', $file->fid); } + module_invoke_all('file_presave', $file); + module_invoke_all('entity_presave', $file, 'file'); + if (empty($file->fid)) { drupal_write_record('file_managed', $file); // Inform modules about the newly added file. |