Closed (fixed)
Project:
Project
Version:
7.x-2.x-dev
Component:
Projects
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
26 Apr 2012 at 19:41 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dwwCool, thanks! Looks like function name mismatch:
project_node_type_is_project()vs.project_entity_bundle_is_project().Comment #2
mikey_p commentedCommitted to 7.x-2.x with tests.
Comment #3
mikey_p commentedComment #5
dwwBetween this and the stuff chx introduced over at #1548222: node/add/project-issue/%project I think we're getting into dangerous territory here. We're trying to build an API that doesn't assume nodes and could someday handle it if other entity types were "projectable." However, we're actually still assuming nodes in a lot of ways, and I don't think it's ultimately going to work to allow arbitrary entities to be projects. I think it's going to be cleaner and simpler to just embrace our reliance on nodes and not try (and fail) to be overly generic. See my patch at #1580178-3: Add helper functions to handle multiple node types behaving as issues for an example of what I mean. We're still going to use the presence of the field_project_type to know if a given node type is a project or not, but let's not kid ourselves with all this talk of entity bundles. ;)
Comment #6
dwwLike this. Any objections?
Comment #8
dwwBah. mikey_p posted a nearly identical patch at #1586210: Clean up confusion where we appear to support more entity types. Let's continue there...
Comment #9
dwwI'm going to reopen this since now that we're getting into implementation, I'm realizing I'm not happy with our choice that the project-ness of a node type is determined by the presence of field_project_type and forcing everyone to have this sandbox vs. full thing that most sites aren't going to care about at all. Instead see my proposal at #1569524: Add a 'Project settings' tab on node type edit forms (I just updated the summary there).
So, once that UI works, we're going to have to fix the functions we added here.
Comment #10
dwwI just pushed a fix for this (09f1147) now that #1569524: Add a 'Project settings' tab on node type edit forms is done.
Comment #11.0
(not verified) commentedAdding a Related Issues section.