File field and Image field can be added to any types of entity,
but the filefield_paths only handle the node entity.
(imho this is a stable release blocker bug)
Recommended DB schema:
+ entity (text)
- type
+ boundle (rename type to boundle)
Replace
hook_node_insert() to hook_entity_insert()
hook_node_update() to hook_entity_update()
Entity type cannot be hard coded as 'node'.
Need discussion for '#token_types' in filefield_paths_filefield_paths_field_settings(),
Maybe array('file', 'and each filedable entity').
Any idea or recommendation ?
Best regards and sorry for my bad english.
Comments
Comment #1
sweetchuckhttp://drupal.org/node/1155184