Closed (duplicate)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2011 at 14:13 UTC
Updated:
23 Apr 2013 at 14:08 UTC
Jump to comment: Most recent file
Comments
Comment #2
drupallerinaSeems like the test didn't like presave.
Comment #3
dave reidNow that I realize it, everything except for the 'view' rules event needs to be submitted as a patch to add core support for file entities since core already provides file_presave/insert/update/delete hooks. File entity would provide support for the file view action.
Comment #4
drupallerinaComment #6
dave reidComment #7
dave reidFile entity has switched to a 7.x-2.x branch and the 7.x-1.x branch is no longer used. Please make sure to update your Git clones.
Comment #8
bradjones1If the goal is to have fields implementing file_entity available in Rules, I think those implementing modules may be the proper place to do Rules integration. I just submitted a patch to media module that exposes mediafield to Rules - see #1321600: Entity API (and Rules) integration for mediafield.
Of note, I was able to successfully apply this patch to 7.x-2.x-dev and the actions did appear, but I think exposing the fields is a better approach than creating rules events. For instance, instead of triggering on every file_entity CRUD action, you can react to a node save and then add a condition on the specific field.
Comment #9
agentrickardMediafield module is deprecated in 7.x.2.
Comment #10
dave reidSee the related issue in Rules: #826986: File API events
Comment #11
rodrigoaguileraI think that that issue is for file field in core, there's no event in rules for when a entity of type file is created
Comment #12
dave reidFile field in core uses file entities natively. So #826986: File API events is the proper issue and officially closing this as a duplicate.