Scald flash module can create successfully scald flash atoms, but they do not survive more than a couple of hours.
Actually, they are marked temporary in the file_managed table.
Added a hook_scald_atom_insert(), copied from audio module...
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | scald_flash_atom_not_registered-2025773-3.patch | 1.2 KB | gifad |
| #1 | scald_flash_atom_not_registered-2025773-1.patch | 1.12 KB | gifad |
Comments
Comment #1
gifad commentedAlso fixed some irrelevant code obviously coming from twitter module...
Comment #2
DeFr commentedMakes sense.
Let's remove the omit_legend = TRUE; completely instead of commenting it out, and then the patch is good to go.
Comment #3
gifad commentedOk for the tweet comment, but can you give just two words on why scald_atom_insert is the right hook to use, instead of scald_register_atom, or scald_atom_presave ?
Comment #4
DeFr commentedSure: that's due to the file usage call, to keep track of where the file is used. Both scald_register_atom and scald_atom_presave runs before the atom is saved, so you can't have access to $atom->sid.
Comment #5
gifad commented... and $atom->sid is needed for file_usage.
Ok, thanks.
Comment #6
gaëlgComment #8
DeFr commentedThe patch was pushed during the DCParis code sprint (commit 32f5e) but I forgot to update the issue status, sorry about that.