Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Docs says that file_save_upload() accepts $form_state as a second parameter. But actual list of parameters is this:
function file_save_upload($form_field_name, $validators = array(), $destination = FALSE, $delta = NULL, $replace = FILE_EXISTS_RENAME) {
/* ... */
}
From the look of function definition, the documentation part referencing $form_state can be removed.
Comment | File | Size | Author |
---|---|---|---|
#3 | fix-documentation-for-file_save_upload-2280485-3.patch | 624 bytes | adci_contributor |
#1 | Fix-documentation-for-file_save_upload-2280485-1.patch | 625 bytes | SiliconMind |
Comments
Comment #1
SiliconMind CreditAttribution: SiliconMind commentedPatch uploaded.
Comment #2
jhedstromNeeds a reroll.
Comment #3
adci_contributor CreditAttribution: adci_contributor commentedRerolled
Comment #4
joachim CreditAttribution: joachim commentedLooks good to me.
Setting to docs component so our docs maintainer spots it.
Comment #5
webchickNice catch. Committed and pushed to 8.0.x. Looks like it applies to Drupal 7 as well.
Comment #7
webchickOops, nope I lie. :) 8.0.x only. Huh. Wonder how on earth that happened.