Closed (fixed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2012 at 12:56 UTC
Updated:
8 Jun 2012 at 20:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fubhy commentedComment #3
fagoComment #4
fagoLet's save the "or not".
Whitespace in empty line.
Let's use a more correct function name, .e.g.
entity_type_is_fieldable().
That's check twice as it is checked in the if() again.
Comment #5
fubhy commentedOki!
Comment #6
fubhy commentedOoops, I forgot the whitespace.
Comment #7
fagoA left-over?
Comment #8
Anonymous (not verified) commentedThis wasn't applying because of a change to entity.ui.inc, so I rerolled it and removed the line that fago pointed out.
Since the entity.api.php documentation indicated that only fieldable entities could take the 'bundle of' key, I changed the wording there. I tried to make it as clear as possible, but someone else will have to let me know if I succeeded in making it clear.
Comment #9
tim.plunkettThis looks good to me! I personally would have written
return !empty($info['fieldable']);but I'm super terse like that ;)
Comment #10
fubhy commentedThe first one is easier to read, but I agree that the one line return is still better. Let's get that in, or?
Comment #11
tim.plunkettSure thing.
Comment #12
fagothanks all! Committed.