Posted by jhodgdon on August 25, 2011 at 9:04pm
5 followers
| Project: | Drupal core |
| Version: | 8.x-dev |
| Component: | documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | michaellenahan |
| Status: | closed (fixed) |
| Issue tags: | needs backport to D7 |
Issue Summary
API page: http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...
Describe the problem you have found:
No function body on hook_file_insert() doc... Needs one!
Comments
#1
i'm at drupalcon london doc sprint. working on this with kay_v.
#2
Hello from DrupalCon in sunny South London.
We're at the doc sprint and have added an example.
Thanks to: bes and kay_v
#3
#4
The last submitted patch, adding_hook_file_insert_example-1260162-2.patch, failed testing.
#5
Seems to have too many parens in this line:
+ if (empty($validate))) {Also, this bit at the end of the patch needs to be removed:
diff --git a/scripts/drupal.sh b/scripts/drupal.shold mode 100755
new mode 100644
diff --git a/scripts/password-hash.sh b/scripts/password-hash.sh
old mode 100755
new mode 100644
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
old mode 100755
new mode 100644
#6
new patch with the fix
#7
Looks good, thanks for the follow-up! Should go into d7/d8 I think.
#8
Committed to 7.x and 8.x. Thanks!
#9
Automatically closed -- issue fixed for 2 weeks with no activity.