Closed (fixed)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Views integration
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 Jun 2011 at 22:54 UTC
Updated:
26 Apr 2012 at 18:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
webflo commentedComment #2
webflo commentedSorry i uploaded the wrong patch.
Comment #3
dave reidThe views data for the file_managed table is already managed by the modules/system.views.inc in views itself. You need to alter that rather than provide your own hook_views_data().
Comment #4
dave reidDuh, now I see that's basically what you are doing.
Comment #5
e2thex commenteddo you think we could change the base class for the argument handler to views_handler_argument_string? this way we could get multiple values as an option.
Comment #6
webflo commentedSure good idea. Use need the lasted version of views to run this patch. See #783514: implement a break_strings method and use it in string argument handler.
Comment #7
Shadlington commentedSubbing
Comment #8
e2thex commentedThis seems to work well I have attached a version that can be used with drush make.
Comment #10
dave reidComment #12
dave reidComment #14
dave reidComment #15
dave reidComment #16
dave reidRevised patch based on current code.
Comment #17
dave reidComment #18
dave reidI have realized this is pretty much going to be pointless without #1227080: Handle existing files {file_managed}.type fields on install and/or #1227084: Provide built-in support for pre-defined file types.
Comment #19
dave reidComment #20
webflo commentedRerolled. Marked as "needs review" since #1227080: Handle existing files {file_managed}.type fields on install is fixed.
Comment #21
aaron commentedworks as advertised.
Comment #22
dave reidGave this one final test and it's still good. Committed to Git.
http://drupalcode.org/project/file_entity.git/commit/dce2363
Comment #24
ñull commentedCan this be ported to 7.x-2.x?
Comment #25
dave reidIt should be already applied because the 7.x-1.x branch was 'renamed' to 7.x-2.x to match the Media version. Please check the code before re-opening an issue.